HI, I have creaed button to login with facebook using Oauth in asp.net mvc after logging I have got the user Id and email after login but want to Get PageID of a Facebook user which the user is admin for it and get permissions to post on it.
how can I do that. Thanks
Answered by:- Vinnu
You can get user pages using Graph API. Steps:
manage_pages permission from the user (extended permissions).
You can test this procedure in the graph explorer -> Just click on 'Get Access Token' button-> under 'Extended permission' check 'manage_pages' & submit it. It will give you the admin-page-details JSON.
Some more links which may help
https://stackoverflow.com/questions/13856918/facebook-c-sharp-sdk-how-to-get-all-user-facebook-pages
https://gwu-libraries.github.io/sfm-ui/posts/2018-01-02-facebook
https://docs.oneall.com/api/resources/providers/facebook/list-all-pages/
The above links should help you if you have knowledge of Graph API, if not you can read this article which may help.
Answered by:- LuneAgile
Thanks so much Vinnu your answar help me alot of :) .
Subscribe to our weekly Newsletter & Keep getting latest article/questions in your inbox weekly