Facebook ios dialog suddenly stopped working - ios

I am working with Facebook SDK to share a message on the user's wall.
It was working fine until yesterday, but now it's broken.
I started getting message:
An error occured please try again later.
Did anything change on the Facebook side that prevents dialog to be present?
dictionary = [NSMutableDictionary dictionaryWithObjectsAndKeys:
#"Lost Pet", #"name",
#"Help!", #"caption",
url, #"link",
[petInfo objectForKey:#"picture"], #"picture",
description, #"description",nil];
[facebook dialog:#"feed" andParams:dictionary andDelegate:self];
Any ideas how to approach it?
I tried to include app_id in the params.

It looks like your example is prefilling captions for posted images, which is a Facebook policy no-no - you might want to check your app for any developer alerts concerning this, which could be causing the error. You're also using the older "feed dialog" to post. The iOS 3.5 SDK included Native Share dialogs, which are much faster. Check the below resources for how to implement these:
https://developers.facebook.com/docs/howtos/share-native-dialogs-ios-sdk/
https://developers.facebook.com/docs/tutorial/iossdk/upgrading-from-3.2-to-3.5/

Related

apprequests dialog not showing list of the friends

On the native iOS application code described at Facebook documentation http://developers.facebook.com/blog/post/2012/04/26/android-and-ios--discovery-via-requests-best-practices/ present very interesting usage of the deprecated app request dialog
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
#"Check out this awesome app.", #"message",
nil];
[self.facebook dialog:#"apprequests"
andParams:params
andDelegate:self];
It shows dialog but without any friends. I saw ton of troubles with this code at stackoverfloww but related to filters param. But actually I am not using filters at all. And it don't want to show list of the friends. Could it be related to SDK API change? Because several month ago it worked perfect.

Facebook iOS SDK - Simple status update with Dialog

I'm trying to post a simple status update on the Facebook iOS SDK. At the moment, if I include the link parameter, everything will work:
NSMutableDictionary *params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
#"Name here", #"name",
#"Caption here", #"caption",
#"Status update", #"description",
#"http://www.apple.com.",#"link",
nil];
[facebook dialog:#"feed"
andParams:params
andDelegate:self];
But once I remove link none of the remaining parameters are acknowledged and I'm left with a blank message. I simply want to perform the same sort of post you can achieve with Facebook request whereby providing a string for the message parameter is enough for the status update.
Not sure where I'm going wrong.
Actually posing of status messages with feed dialog isn't an option and it's actually not intended to be user like this.
You can consider one of the options:
Requesting publish_stream permission and than issue POST request to Graph API with message parameter (feed connection of user object), see statuses connection documentation (IMO it seems as an good way to go, if you don't afraid to ask publish_stream permission).
Open Facebook App with publishing view (and text pre-filled?), this is described in answer to "How to programmatically open iOS Facebook app with pre-populated status?"
Note: I'm not completely sure about inability to achieve this with feed dialog, so I may be wrong, anyone who know this isn't the case please correct me.

iPhone Facebook app not showing a link when displaying application name on a wall posting made by iOS app

I have written an iPhone app that includes a feature to share images with facebook. It uses the following code to post images to the users wall.
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
img, #"picture",
photoItem.caption == nil ? #"" :
photoItem.caption,#"name", nil];
[facebook requestWithGraphPath:#"me/photos"
andParams:params
andHttpMethod:#"POST"
andDelegate:self];
It posts the photo up on the wall with no problems. When viewing the wall with Facebook on a desktop computer, the app name is a link that takes you to the facebook app page.
When viewing the same posting on the iPhone or Android facebook app, the app name is no longer a link.
Am I doing something wrong? Is this a bug or by design?

iOS Facebook api, apprequests sent but not receiving?

I'm currently working on an iOS app, and I use apprequests to bring up the dialog to send request. I can see everything working fine (I got the dialog complete thing) but user is not getting the request! I'm working with a test FB app (not public), I'm thinking if there's something I'm missing on setting up the FB app? Or is there a specify permission I have to enable?
Here is a little piece of my code:
-(void)appRequestsWithMessage:(NSString )message {
NSMutableDictionary params = [NSMutableDictionary dictionaryWithObjectsAndKeys: message, #"message", nil];
[facebook dialog:#"apprequests"
andParams:params
andDelegate:self];
}
To allow App Requests to be shown in Facebook, you have to enable "App on Facebook" in Apps Settings and supply a "Canvas URL" and a "Secured Canvas URL".
Have you added the receiving user as a tester on your Facebook app admin page? As long as you're in sandbox mode, only users added as testers (or any other position) can see, interact with and receive requests from our app.
Check the settings page for your app.

Feed dialog generating errors with iOS SDK

UPDATE: This problem was resolved when facebook fixed their service.
I'm trying to get the feed dialog to work for sharing with facebook. I had it all working before with the old, deprecated API and SDK, but have just moved to using the current iPhone SDK and am trying an example directly from the documenation here;
I keep getting the error, "Error with publishing" "There was a problem generating the Feed story from the provided data" and I cannot see what I'm doing wrong. Note that I have taken out the message parameter as it was deprecated in July, but I get the same problem whether or not that parameter is present.
Facebook *facebook = [[Facebook alloc] initWithAppId:kFacebookAppId andDelegate:self];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
kFacebookAppId, #"app_id",
#"https://developers.facebook.com/docs/reference/dialogs/", #"link",
#"http://fbrell.com/f8.jpg", #"picture",
#"Facebook Dialogs", #"name",
#"Reference Documentation", #"caption",
#"Using Dialogs to interact with users.", #"description",
nil];
[facebook dialog:#"feed" andParams:params andDelegate:self];
Can anyone see what I might be doing wrong?
Thanks!
The page http://developers.facebook.com/live_status reports the issue today at 16:49 (GMT+1)
To follow the issue : https://developers.facebook.com/bugs/295765603772094
I don't think you are doing something wrong.
Just experienced the same problem with with my working app.
Most likely an issue on the side of facebook
You can use direct REST API or Graph API calls that are working now.

Resources