com.facebook.sdk:FBSDKGraphRequestErrorParsedJsONResponseKey={ body = { error = { code = 100; "fbtrace_ID" = Ed9BmMChIsn; message = "(#100) No permission to perform current operation."; type = OAuthException; }; }; code = 400;},com.facebook.sdk:FBSDKGraphRequestErrorhttpStatusCodeKey=400,
我的直播流代码:
- (voID)enableFacebookliveStreamingWithCompletionHandler:(voID(^)(Nsstring* facebookStreamURL,Nsstring* facebookStreamKey,NSError* error))completionHandler;{ dispatch_async(dispatch_get_main_queue(),^{ if ([[FBSDKAccesstoken currentAccesstoken] hasGranted:permissionPublishActions]) { Nsstring* liveVIDeosRequestPath = [Nsstring stringWithFormat:@"/%@/live_vIDeos",[FBSDKAccesstoken currentAccesstoken].userID]; FBSDKGraphRequest* request = [[FBSDKGraphRequest alloc] initWithGraPHPath:liveVIDeosRequestPath parameters:nil httpMethod:@"POST"]; [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,ID result,NSError *error) { NSLog(@"%@",[FBSDKAccesstoken currentAccesstoken].permissions); if (error) { if (completionHandler) completionHandler(@"",@"",error); } else { if (completionHandler) completionHandler(@"rtmp://rtmp-API.facebook.com:80/rtmp/",[[result objectForKey:@"stream_url"] lastPathComponent],nil); } }]; } });}
P.S //非常有趣,即使我已经在这里包含了所有权限:https://developers.facebook.com/tools/explorer,对我来说同样拒绝访问第二个帐户进行测试(应用程序未注册)!
请帮帮我.
解决方法 大多数权限需要由Facebook审核,否则您只能将其用作在App中具有角色的用户.阅读文档: https://developers.facebook.com/docs/facebook-login/review中的“登录审核” 总结以上是内存溢出为你收集整理的ios – 直播视频. (#100)无权执行当前 *** 作全部内容,希望文章能够帮你解决ios – 直播视频. (#100)无权执行当前 *** 作所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)