开发者

Request facebook permissions each and every time

开发者 https://www.devze.com 2023-03-03 05:14 出处:网络
I have developed an app which requests permission from the user to access their basic details.Once they have accepted the request permission dialog box, it gets entered into their facebook settings to

I have developed an app which requests permission from the user to access their basic details. Once they have accepted the request permission dialog box, it gets entered into their facebook settings to allow my app to access their basic details. For example, after the first time, my app will not show them the request permissions dialog box because it has been save开发者_如何学Cd in the users facebook settings.

Is it possible to stop this from happening and ask for their permission each and every time, without the settings getting saved into the users settings section of facebook?


I don't think it is possible,

After the user allowed you app, Facebook add it to the user's applications.

Then it's there and the user doesn't have to approve it anymore, whe you ask for permissions again, Facebook sees that it was already approved and skip the permissions dialog. The only way to see this dialog again, is for the user to remove the app permissions in its settings. So next time he will have to accept it again.

Anyway why would you like to show this permissions dialog again , it's one of the biggest barriers for users to use your application (users do not like it, and a lot of them stop when they see this dialog and never come back). Actually it's stated in facebook doc somewhere that the more permissions you ask, the less users will accept and use your app ...


You can de-authorize an application entirely, or just revoke a specific permission on behalf of a user by issuing an HTTP DELETE to PROFILE_ID/permissions or PROFILE_ID/permissions/PERMISSION_NAME respectively. This request must be made with a value user access_token for the current app.

http://developers.facebook.com/docs/reference/api/user/

i.e. revoke email permission: Post DELETE to https://graph.facebook.com/me/permissions/email

Using the REST API (legacy) you can do it in the frontend:

FB.api({method:'auth.revokeExtendedPermission', perm:'user_photos'});

You can then ask for permissions again (FB.Login) and it will prompt them for the permission.

0

精彩评论

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