How to get PageID of a Facebook user for which user is admin and get permissions to post on it in ASP.NET MVC?


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


Asked by:- LuneAgile
0
: 2556 At:- 8/26/2018 1:31:43 PM
ASP.NET OAuth-login-facebook







2 Answers
profileImage Answered by:- Vinnu

You can get user pages using Graph API. Steps:

  1. Get the manage_pages permission from the user (extended permissions).
  2. Call the Graph API - https://graph.facebook.com/me/accounts

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.

Source

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.

0
At:- 8/27/2018 2:23:36 PM


profileImage Answered by:- LuneAgile

Thanks so much Vinnu your answar help me alot of :) .

0
At:- 8/27/2018 4:30:55 PM






Login/Register to answer
Or
Register directly by posting answer/details

Full Name *

Email *




By posting your answer you agree on privacy policy & terms of use