Dan Green-Leipciger
Dan Green-Leipciger

Reputation: 3932

Monitor Facebook newsfeed for keywords

I would like to monitor my Facebook newsfeed for keywords in status updates (web developer, wordpress, php, etc...).

My questions are:

1) Does anyone know how I can get just status updates this in JSON format via the facebook Open Graph? (not /me/home, only status updates)

2) Does something like this already exist?

Upvotes: 0

Views: 154

Answers (1)

Tobi
Tobi

Reputation: 31479

You could use the Realtime Updates API and look for changes for the "feed" connection. Have a look at the docs here.

https://developers.facebook.com/docs/graph-api/reference/user/

Be aware that if you receive a notification, you actively need to pull the fead data by issueing

GET /me/feed?since=LAST_UPDATE_TIMESTAMP

where LAST_UPDATE_TIMESTAMP is the timestamp when you pulled it for the last time (you should store this in your application).

Upvotes: 1

Related Questions