In my Desktop application, I want to read the Wall posts,Messages, Like counts etc for a particular Facebook page (not for a facebook user)
I went through this post get user data(on stackoverflow). I want to achieve the same thing but for a FB page.
I am ready to create a facebook application to achieve this and have the user to give permission to pull the data.
Please advice on the above.
You need an access token to get page data from Facebook.
First get an access token using below URL with your facebook application’s parameters:
https://graph.facebook.com/oauth/access_token?type=client_cred&client_id={yourappid}&client_secret={yourappscret}Then you can call the Facebook Graph API with returning token
General:
https://graph.facebook.com/wikipedia?access_token={token}Posts:
https://graph.facebook.com/wikipedia/posts?access_token={token}An example code would be;