我将Facebook SDK集成到我的iOS原生APP中。 我完成了登录并收到了活跃的FBSession。然后我要求发布许可,然后我想在我的墙上或朋友墙上发布一个新的ost。我不明白怎么做,你能帮帮我吗?
NSMutableDictionary<FBOpenGraphObject> *object = [FBGraphObject openGraphObjectForPost];
object.provisionedForPost = YES;
object[@"title"] = @"This is Test!";
object[@"image"] = @"http://www.test.com/myimage.png";
[FBRequestConnection startForPostOpenGraphObject:object
completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
if(error) {
NSLog(@"Error: %@", error);
} else {
NSLog(@"Success %@", result);
}
}];
我收到此错误:
2013-09-07 12:50:36.078 LSFacebook[1177:c07] Error: Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0xa24e730 {com.facebook.sdk:HTTPStatusCode=500, com.facebook.sdk:ParsedJSONResponseKey={ body = { error = { code = 1; message = "An unknown error has occurred."; type = OAuthException; }; }; code = 500; }, com.facebook.sdk:ErrorSessionKey=, expirationDate: 2013-11-06 10:29:13 +0000, refreshDate: 2013-09-07 10:50:25 +0000, attemptedRefreshDate: 0001-12-30 00:00:00 +0000, permissions:( installed, "basic_info", email, "publish_actions" )>}
由于
卢卡