Reputation: 175
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.
Upvotes: 9
Views: 12966
Reputation: 196
Maybe you need to add it in the Facebook developer console permissions requests section.
Upvotes: 0
Reputation: 17942
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
Upvotes: 1
Reputation: 14938
Do Not ask Permission for AccessToken
List< String > permissionNeeds = Arrays.asList("user_photos", "email",
"user_birthday", "public_profile", "AccessToken");
remove "AccessToken"
List< String > permissionNeeds = Arrays.asList("user_photos", "email",
"user_birthday", "public_profile");
Upvotes: 0
Reputation: 947
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");
Upvotes: 10
Reputation: 175
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.
Upvotes: 3