使用Facebook iOS SDK 3.1.1签入的图谱API

sil*_*eep 6 checkin facebook-graph-api facebook-checkins ios6

我使用Facebook SDK 3.1.1进行登录以及使用Facebook登记.使用Facebook登录它工作正常,但CheckIn使用图形API会出错.

这是我为checkin @"friends_status",@"user_checkins",@"friends_checkins",@"user_status"提供的所有权限.

这是请求:

[FBRequestConnection startForPostStatusUpdate:message 
                                        place:placeId 
                                         tags:nil 
                            completionHandler:
      ^(FBRequestConnection *connection, id result, NSError *error) {
           NSLog(@"Response....... \n\n %@  %@ %@",connection,result,error);
      }
];
Run Code Online (Sandbox Code Playgroud)

响应:

)>(null)Error Domain = com.facebook.sdk Code = 5"操作无法完成.(com.facebook.sdk error 5.)"UserInfo = 0x808a5a0 {com.facebook.sdk:ParsedJSONResponseKey = {type = mutable dict,count = 2,entries => 1:{contents ="code"} = {value = +403,type = kCFNumberSInt32Type} 2:{contents ="body"} = {type = mutable dict,count = 1 ,entries => 11:{contents ="error"} = {type = mutable dict,count = 3,entries => 2:{contents ="type"} = {contents ="OAuthException"} 3:{contents ="消息"} = {contents ="(#200)用户尚未授权应用程序执行此操作"} 6:{contents ="code"} = 200}

}

},com.facebook.sdk:HTTPStatusCode = 403}

任何人都可以帮我解决代码有什么问题吗?

Sté*_*ert 0

Postlocation的参数需要权限。read_stream