Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of possible 'changes' values in Facebook Realtime Update

I've implemented this for my site:

https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0

and I am receiving updates successfully. The format of these updates is fairly easy to understand by understanding the JSON response. However, I can't find a list of possible types of changes (possible values for the JSON response) so I can handle / replicate all the scenarios that may come up.

Is this published anywhere?

like image 440
Fleep Avatar asked Nov 27 '25 09:11

Fleep


2 Answers

The possible values for 'item' and 'verb' are not documented. Here's everything I have observed when receiving updates for pages only:

Items:

  • like
  • share
  • comment
  • photo
  • video
  • post

Verbs:

  • add
  • remove
  • edited
  • hide
  • unhide

Can't claim this is comprehensive, but that's the best of my knowledge based on reviewing logs of many thousands of updates. I would guess that user, permissions, and payments RTUS have their own sets of possible values.

like image 140
ben author Avatar answered Nov 30 '25 00:11

ben author


Not sure what you mean with types of changes exactly. There's

  • https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0#subscribefields
  • https://developers.facebook.com/docs/graph-api/real-time-updates/v2.0#receiveupdates

If you click on the first links down arrows on the right side, you'll get the list of fields that can change for the user and the page objects.

After some searching, I came across https://developers.facebook.com/docs/public_feed#updates There's a reference to http://activitystrea.ms/ in the code:

<activity:verb>http://activitystrea.ms/schema/1.0/post/</activity:verb>

Unfortunately, the website doesn't work apparantly, but one can view an old version here: https://web.archive.org/web/20140720095121/http://activitystrea.ms/registry/verbs/

This seems to contain the list of possible verbs wihtin this schema. Which of those Facebook actually uses is not clear to me unfortunately. There's the specs as well: http://activitystrea.ms/specs/json/schema/activity-schema.html#verbs

like image 33
Tobi Avatar answered Nov 29 '25 23:11

Tobi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!