I am trying to share on Facebook. But every time it request permission to publish, it will direct a screen "You have authorized to the "AppName"". When I click on OK. It brought me to blank screen.
Here is my flow. 1. Login to Facebook 2. Request for publish permission. 3. Publish to Facebook wall.
[FBSession.activeSession requestNewPublishPermissions:[NSArray arrayWithObject:@"publish_actions"]
defaultAudience:FBSessionDefaultAudienceFriends
completionHandler:^(FBSession *session, NSError *error) {
if (!error) {
// Now have the permission
[self publishStory];
} else {
// Facebook SDK * error handling *
// if the operation is not user cancelled
if (error.fberrorCategory != FBErrorCategoryUserCancelled) {
[self presentAlertForError:error];
}
}
}];