我正在尝试为用户的封面照片运行一个简单的FB图形请求,但我收到的错误是我找不到太多。
(FBSession.activeSession.isOpen) ? NSLog(@"is open") : NSLog(@"is closed");
//cover photo
[FBRequestConnection startWithGraphPath:@"me/fields=cover"
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if (!error) {
// Sucess! Include your code to handle the results here
NSLog(@"user events: %@", result);
} else {
// An error occurred, we need to handle the error
// See: https://developers.facebook.com/docs/ios/errors
}
}];
错误:
FBSDKLog: Error for request to endpoint 'me/fields=cover': An open FBSession must be specified for calls to this endpoint.
我认为这可能是一个FBSession问题,但它打印出“打开”,所以似乎有一个有效的活动会话。
关于问题的任何想法?
谢谢:)