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.
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");
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With