I figured out that facebook actually changed something in their API... publishing a feed (at least for now) without having preview does not work; you just have to have the preview option enabled; even if you have stream publish permissions. I made them aware of this on the facebook forums and they said they are working on it. That being said; if there is indeed a workaround, great.
I want to use an fbAgent through all the different views of my multiview application. However, I'm not sure how am I supposed to have access to the fbAgent object (and there should only be one, right?). If I declare the FBAgent on my app delegate, then I need to declare something like
@interface TestFacebookAppDelegate : NSObject <UIApplicationDelegate, FacebookAgentDelegate>
but this doesn't seem right.
Any help/suggestion is really appreciated!
Thanks,
Irene
Was there anybody who could bypass this "Approve photos" issue?
I just added pendingAction = FacebookAgentActionUploadPhotoAskPermission;
when initializing the FBAgent. My App will anyway need only the photo upload functionality with Feed Update.
As for Feed Update, I cannot find a callback method that gets called after the feed has been posted. I am using [fbAgent publishFeedWithName:captionText:imageurl:linkurl:u serMessagePrompt:actionLabel:actionText:actionLink :] method. Could anyone please point me which callback method gets called after the feed has been posted? Or is it yet to be implemented in this version? Thank you....
In the end, has anyone created an app that uses FBConnect in many different views? I spent too much time on that and I'm really frustrated. For example, the FBSession object should be singleton and created at the app delegate? Isn't the library supposed to provide us with just one instance of the FBSession? My main problem is that I get very unstabe behavior when switching among views; the session:didLogin etc seem to never be called..
Hi irene,
I've just updated the facebookagent code.
Now support for FQL, friendlist, userinfo is added! Additionally, a shared object is introduced so you can use facebook agent easily on multiple view controller!
Hi irene,
I've just updated the facebookagent code.
Now support for FQL, friendlist, userinfo is added! Additionally, a shared object is introduced so you can use facebook agent easily on multiple view controller!
has anyone ever tried to implement a 'Like this page' functionality? The idea would be that the user just pushes a button and he would like our page, becoming a follower / fan.
I can't really find any suitable Facebook API calls.
I've seen a bunch of people having problems with the uploadphotoasdata call, but has anyone actually figured out a solution to the problem? I changed the NSDictionary to NSMutable dictionary, but it still doesn't work. Any help would be GREATLY appreciated. Thanks.
I got it working extremely close to what I need; just have a few questions.
1. When the image gets uploaded it automatically goes to the feed as well; so with that and the deliberate feed post it is a "double whammy" that might be annoying; is there anyway to make the image upload go ninja style; so that it doesn't trigger a feed post?
2. Is there anyway to make it so the user is not prompted to insert some text before the feed publish? I tried setting the userPrompt field to nil but it just seemed to default it to "what's on your mind" with the the text area still there. I'm reading the docs now but its confusing: I think some auto_publish bool must be set to true somewhere and the app must have "extended permission"
Edit: I figured this one out: the "preview" value must be set to 0 in the feedDialogue; for some reason permissions didn't need to to be asked for publish stream; weird...
Also one suggestion: on the photo upload methods you have one of the parameters is captionOrNil; this is a little misleading as a nil causes a crash; perhaps a captionOrEmptyString ?
Hi , where did you set the "preview" to 0 in the feedDialogue? I can't seem to find it, thanks.
I have an IPhone App for my Club. I just want one of the tab bars to connect to a particular facebook account so that I can post updates via facebook. Is this the way I should go ?
Anyone figure this one out? I'm getting the same, crappy result.
Anyone figure this out?
Quote:
Originally Posted by scotopia
Hey Aman,
I'm suddenly having a bizarre problem when trying to publish a feed with facebook connect; it used to work but now when I hit my button that tells it to publish a feed, the facebook popup window comes up as usual, the activity meter spins for a second as usual...but then the activity meter disappears and the white popup just stays there forever...feed never gets published. Did something change in FB Connect recently or something? It's possible I somehow changed something to screw it up. It's worth noting that I can do a regular status update just fine. Here's some sample relevant code:
Code:
//this works
[fbAgent setStatus:[NSString stringWithFormat: @"%@", rootViewController.mainView.myLabel.text]];
//wheras this does not anymore..
[fbAgent publishFeedWithName:rootViewController.mainView.myLabel.text
captionText:@"Some Caption"
imageurl:@"http://www.myserver.com/someImage.jpg"
linkurl:@"http://www.google.com"
actionLabel:@"Please Work"
actionText:@"Damn!"
actionLink:@"http://www.google.com"];
THis is the last thing standing in my way of release...please help; thanks!