开发者

Is it posible to change the scope of your Facebook Connect website?

开发者 https://www.devze.com 2023-03-11 21:50 出处:网络
I\'m building a Facebook app with Facebook login via Oauth 2.0. Will it be possible to request more permissions (scope) from the user in the fu开发者_如何学编程ture as we add features or do we need to

I'm building a Facebook app with Facebook login via Oauth 2.0. Will it be possible to request more permissions (scope) from the user in the fu开发者_如何学编程ture as we add features or do we need to request them all up front?

Anyone implemented this with Facebook Connect?


From my experience, you can add permissions later and it'll prompt the user to accept those permissions. For my app, I started with just basic/email permissions and then added photo... and it would prompt for the photo.


You can call Facebook's permissions api (https://graph.facebook.com/me/permissions?access_token=...) to see if the user has authorized the permission you will need (perhaps they later when in and revoked part of your apps permission but not all of it). If they did, or you just later need different permissions, just show the authorization link like you did the first time with the additional permissions listed in the url (&scope=email,read_stream...) and it will prompt them for those.

0

精彩评论

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