Reputation: 179
Does anybody know if it is possible to use new Share Dialog feature on iOS 5 ? On the facebook official documentation, it is written :
Note: You can only test the Share dialog on a device that has Facebook for iOS 6.0 or greater. You may also not have access to test this feature while it's in the beta phase.**
How many time will this feature stay in beta phase?
Upvotes: 4
Views: 1666
Reputation: 1343
The Facebook SDK 3.5 for iOS runs on iOS 5.0 and greater. The Native Share Dialog feature works on OS versions supported by the SDK. The docs are actually referring to the version of the Facebook application, and are admittedly easy to mistake for referring to the OS version. We will clarify the docs to avoid further confusion on this point. Thanks for the question!
Upvotes: 7
Reputation: 4119
For ios5, you can use the older web dialog. You can invoke it with something like this:
NSMutableDictionary *params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:
@"name/title of post", @"name",
@"some description", @"description",
@"url to link to", @"link",
nil];
// Invoke the dialog
[FBWebDialogs presentFeedDialogModallyWithSession:nil parameters:params handler:
^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
// Error launching the dialog or publishing a story.
NSLog(@"Error publishing story.");
} else {
}
}];
You can test if the native dialog is available by capturing the return value presentShareDialogModallyFrom: in FBNativeDialogs.
Upvotes: 0