简体   繁体   English

使用javascript sdk在facebook上发布时收到错误

[英]getting error while posting on facebook using javascript sdk

i have a app named bit-to-byte and i have changed all the setting for posting on users wall. 我有一个名为bit-to-byte的应用程序,我已经更改了在用户墙上发布的所有设置。 when i use the app it works perfectly but for the other users it gives a error. 当我使用该应用程序时,它可以很好地工作,但对于其他用户,它会出错。 i use this code for posting on wall. 我使用此代码在墙上发布。

FB.login(function(){
            FB.api('/me/photos', 'post', {
                message:srci,
                url:imgURL        
            }, function(response){

            if (!response || response.error) {
                alert('Error occured');
                console.log(response);
            } else {
            alert('Post ID: ' + response.id);
            }
});}, {scope: 'publish_actions'});

and i am getting this error. 我收到了这个错误。

message: "(#200) Permissions error" type: "OAuthException" 消息:“(#200)权限错误”类型:“OAuthException”

other user can login to the app successfully but while posting they get the error. 其他用户可以成功登录该应用程序但在发布时会收到错误。

For you it works because the user you're testing it with is probably the admin of the app. 对你来说它是有效的,因为你正在测试它的用户可能是应用程序的管理员。 For all other users, you need to get your app reviewed, otherwise you can't ask for more than basic permissions. 对于所有其他用户,您需要审核您的应用,否则您不能要求超过基本权限。 See 看到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM