开发者

FB JavaScript SDK is giving wrong permissions dialog for my friend, but new one for me

开发者 https://www.devze.com 2023-04-07 02:54 出处:网络
Currently, I\'m using <div id=\"fb-root\"></div> <script src=\"http://connect.facebook.net/en_US/all.js\"></script>

Currently, I'm using

<div id="fb-root"></div> 
<script src="http://connect.facebook.net/en_US/all.js"></script> 
<script> 
FB.init({
    appId: '214620658601362',
    cookie: true,
    status: true,
    xfbml: true,
    oauth: true
});
$(function() {
    $("#login").click(function() {
        FB.login(function() {
            alert('logged in');
        }, {
            scope: 'publish_actions'
        });
    });
})开发者_如何学Go;

code to get authenticated into my dummy application. Problem is that my friend see the old permissions dialog, it means he can't approve my application's "publish_actions" permission. I see the new one. When I try to publish action, error appears:

 FB.ApiServer._callbacks.f3209b810({"error":{"message":"(#200) Requires extended permission: publish_actions","type":"OAuthException"}});

however, it works for me

My friend (wrong one):

FB JavaScript SDK is giving wrong permissions dialog for my friend, but new one for me

Me (correct one):

FB JavaScript SDK is giving wrong permissions dialog for my friend, but new one for me

am I missing something in my login code?


The second screenshot is a dialog which hasn't launched for every application/user; if your friend enabled the Timeline beta as a developer, he'd likely be seeing the new dialog. It's not clear if he's a developer of the app you're trying to authorize; if so, it makes it even more likely.


Your friend probably needs to clear their browser cache so that it has to reload the page from its source, not from what is cached on disk.

0

精彩评论

暂无评论...
验证码 换一张
取 消