当我尝试Share on Facebook
通过应用时,我遇到了这个问题
Error for request to endpoint 'me/photos': An open FBSession must be specified for calls to this endpoint.
这就是我试图做的事情
[FBSession openActiveSessionWithPublishPermissions:[NSArray arrayWithObjects:@"publish_actions",@"publish_stream",nil]
defaultAudience:FBSessionDefaultAudienceOnlyMe
allowLoginUI:YES
completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {
[self postImageToFb];
}];
提前致谢!