开发者

How to increase permissions for a Facebook user that has already authorized your application?

开发者 https://www.devze.com 2023-02-07 12:11 出处:网络
If a user has already authorized my application, but I would like to request additional permissions from the user, how can I do this?

If a user has already authorized my application, but I would like to request additional permissions from the user, how can I do this?

The reason I ask is because I would like to handle authorization with the relatively new Facebook Registration plugin: http://developers.faceboo开发者_JAVA技巧k.com/docs/plugins/registration

However, the plugin doesn't appear to provide any way for me to request any permissions beyond the basic, and so later when additional permission are needed, I would like to request the user to increase the permissions granted.


As mentioned by the Facebook Administrator on their forums, this is not supported:

For the moment you can't ask for extended permissions in the registration plugin so you have to ask them on your redirect_uri. Please, file a bug for this issue in bugzilla and select the tag "wishlist" (or subscribe to an existing bug and add your information to it). Best practice is to link back to the bug in the originating forum thread to help fellow developers and Facebook engineers track the conversation and provide follow-up.

I've found a related ticket that is filed on their Bug tracking system, you need to vote to raise it to Facebook development team.

EDIT:
How to ask for extra permissions can be found on my answer here.


This question seems to be old. But I face the same problem and I have been here.

I was quite disappointed but later I solved my problem i.e. to ask additional permission for already authenticated user, i did the following

$params = array(
'method' => 'fql.query',
'query' => "SELECT user_likes FROM permissions WHERE uid=me()",
);
$result = $facebook->api($params);
$likes_permission=$result[0][user_likes];
if($likes_permission!=1)
    echo "<script>window.top.location='".$loginUrl."';</script>";
0

精彩评论

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

关注公众号