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?

有帮助吗?

解决方案

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).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top