Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Invalid Scope with new Permission pages_show_list

I'd like to be able to access to the list of pages that the user manage, without using manage_page.

Since 2.5 (Facebook api version) they added pages_show_list allowing you just to see the list of pages. It's perfect for me, it's allowing me to just do a GraphRequest /me/Accounts without manage_page.

PROBLEM: I tried to add pages_show_list permission to the login button (with setReadPermission())

But I'm getting a Invalid Scope on the app. I tried with setPublishPermission but got an Exception in java. They are not meant to be together.

like image 383
AntonKad Avatar asked Nov 01 '15 21:11

AntonKad


Video Answer


3 Answers

After searching trying for 2 long hours finally fond my mistake .... Maybe this will help you too ...

Be sure to not to add "AccessToken" in the list of permissions that you are asking .

Eg. your permissions should be like -

List < String > permissionNeeds = Arrays.asList("user_photos", "email",
"user_birthday", "public_profile");

and not like

List < String > permissionNeeds = Arrays.asList("user_photos", "email",
"user_birthday", "public_profile", "AccessToken");
like image 154
Shubham Arora Avatar answered Oct 13 '22 06:10

Shubham Arora


Problem solved after deleting facebook sdk from android studio and putting the new one again + deleting project and creating new one on the facebook dashboard.

On the facebook dashboard it shown that i was using the 2.4 Api before i unistalled everything.

like image 34
AntonKad Avatar answered Oct 13 '22 07:10

AntonKad


In Swift 4.2 and Xcode 10.1

Innitially i added .userFriends, .userBirthday in readPermissions

loginManager.logIn(readPermissions: [ReadPermission.publicProfile, .email, .userFriends, .userBirthday], viewController : self)

I changed my code to

loginManager.logIn(readPermissions: [ReadPermission.publicProfile, .email], viewController : self)

Now it's working.

Here any domain we need to to one thing, that is remove .userFriends, .userBirthday in readPermissions

like image 1
Naresh Avatar answered Oct 13 '22 06:10

Naresh