I create a FBSDKShareDialog in code
- (void)shareWithFacebookDialog;
{
FBSDKShareLinkContent* content = [[FBSDKShareLinkContent alloc] init];
content.c
This happened to me when I tried to call the method right after login.
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
[login logInWithPublishPermissions:@[@"publish_actions"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) {
if (error || result.isCancelled) {
} else {
[self shareWithFacebookDialog];
}
}];
It works if I just call it without logging in (should already have valid token).
if ([FBSDKAccessToken currentAccessToken]) {
[self shareWithFacebookDialog];
}