I’m starting to use the Graph API to get my notifications, and in the REST interface, they had the object_id field. I used this to get the notification objects’ id to then query the Graph for more information.
The Graph API object does not include this information.
Example of what I want to do:
- Get user’s notifications JSON object.
- Grab single item
- Identify if this item supports commenting/liking
- Display comments and number of likes for that item
- if user can comment or like item, display buttons for this
my process:
- call
me/notifications/?include_read=1 - is pretty easy to do.
- I can identify if the object refers to a group, event, random application, post, or photo using the URL. I know that posts, likes, photos and others support commenting/likes so I have a way of doing this, though it involves parsing the
linkattribute of the item - this is what I need help with. I can get the
idof the object by parsing thelink, but I don’t get the full object some times using this. For example, to post on a comment, you need to haveUSERID_COMMENTIDand the link only has theCOMMENTIDin this formhttp://www.facebook.com/USERNICKNAME/posts/COMMENTID - I also need help with this. I guess some fb objects can’t been liked via the graph?
any help would be great!
The notification FQL table, which also replaced the REST notifications.get API, still has an
object_idcolumn. That’s the closest thing that exists to what you’re asking for. It doesn’t look like the Graph API call is documented to have theobject_idfield unfortunately.