Get a stream of new Facebook for your application

Is it possible to get a response from the Graph API (or FQL) that will display the new applications you like and the objects attached to it? Meaning: I created the application, placed like buttons all over the site - can I now get a feed that will tell me which last 10 my pages liked?

Related - can I somehow get a list of the last 10 my Fan pages that I liked (something like the "New Likes" window in the "Administrator" section)?

+8
c # facebook facebook-graph-api
source share
2 answers

Question number 1:

You can use real-time updates.

Following are the steps for setting up a subscription:

  • Configure the endpoint URL that receives both HTTP GET (to verify the subscription) and> POST (for the actual change data) from Facebook.
  • Make a POST to the URL of the API chart API https://graph.facebook.com/ / subscriptions for subscribers and be ready to process the request for confirmation.

What are you getting:

User connections to which you can subscribe: channel, friends, actions, interests, music, books, films, television, likes, checks.

What you have not received yet:

home, tagged, posts, photos, albums, videos, groups, notes, events, inbox, outbox, updates, accounts.

Question number 2:

Of course you can! go to Page Notifications (replace XXXX with your page identifier) ​​you will find there an RSS link that you can use without even making a call to the Graph API

You will receive notifications when visitors interact with your page. For example, if a visitor likes your page, or a fan writes on your wall, you will receive a notification.

+4
source share

There is no publicly accessible Facebook API that will allow you to receive a stream of the latest favorite collection items.

In addition, it seems that it is impossible to get a stream of ordered time-specific ones, but you can get a list of user IDs who liked the object using a table like FQL.

like: a FQL table that returns the identifiers of users who love a given object (video, note, link, photo or album).

For example, to get a list of all user IDs who liked the Facebook page, you should use the FQL query:

 SELECT user_id FROM like WHERE object_id="122706168308" 

To return a list similar to this:

 <fql_query_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" list="true"> <like> <user_id>100003494051884</user_id> </like> <like> <user_id>100003621882407</user_id> </like> <like> <user_id>100003664580513</user_id> </like> <like> <user_id>100002342537723</user_id> </like> <like> <user_id>100001712929866</user_id> </like> <like> <user_id>100003278394112</user_id> </like> </fql_query_response> 

The order of user IDs is unclear - it may not be in a specific order, or it may be ordered by time. I would recommend that you have a small violin with FQL, and I like to see if it is in any particular order. You should also take a look at the other examples described here .


As mentioned by Roni , you can use your page’s RSS feed for receiving RSS 2.0 / XML feed all notifications sorted by time.

It may be possible to parse this XML to find users who have recently liked your page, but the feed can become messy: it basically contains HTML for each notification on the notification page.

+7
source share

All Articles