Facebook分享对话框:权限错误-OAuth"Facebook平台" "insufficient_scope(#200)权限错误"; [英] Facebook Share Dialog: Permission Error - OAuth "Facebook Platform" "insufficient_scope (#200) Permissions error"

查看:473
本文介绍了Facebook分享对话框:权限错误-OAuth"Facebook平台" "insufficient_scope(#200)权限错误";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求在这里:

使用打开图操作"从我的应用程序共享到Facebook-使用共享对话框"(因为我不需要特殊的对话框登录)

Share to Facebook from my app using Open Graph Action - using Share Dialog (because I don't want special dialog for login)

我请求发布权限,获得发布权限后,我尝试通过发布"对话框共享.这是我使用的简短代码:

I request publish permission, and upon obtaining it I try to share via Post dialog. Here is the brief code I use:

[FBRequestConnection startWithGraphPath:@"/MY_FB_APP_ID/app_link_hosts"
                                 parameters:paramsForAppLinksHost HTTPMethod:@"POST"
                          completionHandler:^(FBRequestConnection *connection, id result, NSError *error)
     {
         NSString * appLinkHostURLID = [result objectForKey:@"id"]; // store this ID in an NSString

         if(error)
         {
             NSLog(@"error = %@", error.description);
         }
         else
         {
             [self ShareToFB : appLinkHostURLID];  //Code to share OG story via Share Dialog
         }

     }];

但是,上面的错误给了我这个:

However, above error gives me this:

com.facebook.sdk:HTTPStatusCode=403, com.facebook.sdk:ParsedJSONResponseKey={
body =     {
    error =         {
        code = 200;
        message = "(#200) Permissions error";
        type = OAuthException;
    };
};

Facebook SDK的问题在于文档太多,几乎没有支持,我还没有得到

The problem with Facebook SDK is that there is so much documentation and almost no support that I haven't got my previous questions answered too (where I was trying to share without permission), and this problem simply doesn't yield.

请告知-具有Facebook批准的FB应用程序是否需要此功能才能完美运行?如果是这样,当应用程序甚至不在Apple Store上发布时,如何正确提供应用程序商店ID?他们甚至在代码中使用它来获得与应用链接相关的权限(见上文).

Somebody please tell - Is having FB app approved by Facebook a REQUIREMENT for this to work perfectly? If so, how does one correctly provide app store ID when the app isn't even live on Apple store? They use it even in code for applinks related permissions (see above).

问题的症结在于,开发人员用Facebook登录时,一切都可以正常运行,而其他FB用户登录时却失败.这意味着我所有的列表和一切都正常.但是,尚未提交FB应用程序(并且出于许多有效的原因,例如我的iOS应用程序仍在开发中-甚至在应用程序上线之前,如何期望人们提交屏幕截图?)

The crux of the issue is that everything works with developer facebook login perfectly but fails with another FB user. This means that all my plist and everything is OK. However the FB app isn't submitted (and for many valid reasons such as my iOS app is still in development - how can one be expected to submit screenshots and all even before app is live?)

请帮助...

推荐答案

好吧,我自己弄清楚了-像许多其他开发人员一样.

OK, I figured it out myself - like many other developers.

1-此错误是由于以下事实导致的:FB应用未获得某些权限的批准,但仍尝试使用/向用户请求该权限. publish_action就是这样的一种权限.

1 - This error is due to the fact that FB app isn't approved for certain permissions but still trying to use / request that permission from user. publish_action is one such permission.

2-为了进行测试,facebook应用程序开发人员需要从develolper.facebook.com门户中批准测试用户.

2 - In order to test this, facebook app developer needs to approve test users from within develolper.facebook.com portal.

3-该测试用户位于您的FB应用门户中,位于:

3 - This test user is located in your FB app portal under:

a)状态和评论->评论部分下的项目

a) Status & Review -> Items under Review section

b)角色部分.

您(FB应用程序管理员开发人员)需要在b)中添加用户,而不必在a)中添加用户.

You (FB app administrator Developer) need to add the user in b), and not a).

然后,用户需要批准您的请求.为了做到 ,他还需要将自己注册为FB开发人员.

Then the user needs to approve your request. And in order to do that, he needs to register himself as FB developer too.

对于整洁的文档来说太多了……一个人很容易迷路. github样本很不错,但是没有一个能说明整个情况.

So much for neat documentation...one can easily get lost. The github samples and all are great, but none of them tells the whole picture.

A,他们改而改了错误说明.

Alas, they modify their error descriptions instead.

这篇关于Facebook分享对话框:权限错误-OAuth"Facebook平台" "insufficient_scope(#200)权限错误";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆