Login permissions

Hello

Is there any way we could login and require multiple permissions at once, defining which are required?
This is the biggest pain for us using current API - we hussle users with multiple requests during launch and even then user can opt our from a permission on the login page which means we have to create internal error notifying them that not all permissions were accepted.
I really hope this will be handled by v4.

Hi krystian6,

Improved permission handling has been a complex thing to tackle. It’s raised some technical questions as well as philosophical ones, but Facebook has made some improvements to their SDK in this regard, and we’ve tried to give the best of all worlds with the Facebook-v4 plugin.

For requiring multiple permissions at once, this is technically possible with Facebook-v4, but comes with a caveat. Facebook doesn’t allow requests that combine read and publish permissions. If you try to do this, the Facebook-v4 plugin will throw a warning, and will only poke facebook for the read permissions you requested in your API call.

When requesting multiple permissions, the Facebook SDK will bundle up all permissions into a single dialog vs presenting a separate dialog for each permission requested. Now your users now only have 2 screens to go through at most for granting permissions via facebook.login().

From a philosophical standpoint, requesting all the permissions your app will ever need in one shot is not how Facebook intends for permissions to be requested. Instead of requesting all permissions from the very beginning, you should only request permissions at the point where your app will actually use them. Android is also moving to this model beginning with Android Marshmallow, so providing a consistent model for permissions serves to your advantage.

We have made it easier to get more context on granted and declined permissions through the facebook.getCurrentAccessToken() API.

Hope that helps.

Hi krystian6,

Improved permission handling has been a complex thing to tackle. It’s raised some technical questions as well as philosophical ones, but Facebook has made some improvements to their SDK in this regard, and we’ve tried to give the best of all worlds with the Facebook-v4 plugin.

For requiring multiple permissions at once, this is technically possible with Facebook-v4, but comes with a caveat. Facebook doesn’t allow requests that combine read and publish permissions. If you try to do this, the Facebook-v4 plugin will throw a warning, and will only poke facebook for the read permissions you requested in your API call.

When requesting multiple permissions, the Facebook SDK will bundle up all permissions into a single dialog vs presenting a separate dialog for each permission requested. Now your users now only have 2 screens to go through at most for granting permissions via facebook.login().

From a philosophical standpoint, requesting all the permissions your app will ever need in one shot is not how Facebook intends for permissions to be requested. Instead of requesting all permissions from the very beginning, you should only request permissions at the point where your app will actually use them. Android is also moving to this model beginning with Android Marshmallow, so providing a consistent model for permissions serves to your advantage.

We have made it easier to get more context on granted and declined permissions through the facebook.getCurrentAccessToken() API.

Hope that helps.