Search code examples
c#asp.netfacebookfacebook-graph-api

Facebook Graph API getting data when user not logged in


I have this requirement of fetching facebook user information like friends count and other basic information and integrate to our website.

I currently use facebook graph to ask user to authorise, fetch information and store in my database.

When their say, friend count changes how do I update my database without asking user to trigger it manually.

Is there a special permission where i can fetch user data when he/she isnt logged in.

I have seen this somewhere but not sure of the permission.

Or does facebook have any feature of publishing information on subscription ?

I user ASP.net /C#.


Solution

  • Facebook does have a subscription API, so you can subscribe to certain updates. Like a new friend. This way you don't have to keep polling or ask the user to update it. http://developers.facebook.com/docs/api/realtime/