Reputation: 29
I subscribed to feed in the graph api webhook and I am receiving updates to my callback url as a charm, the issue is that I receive updates for each action that happens on the posts: likes, comments.. etc
I want to receive updates only if new post added to the wall, please advice ?
Do we have any fileds on the received json to my callback URL can I use to differentiate if this new post or a comment on a post ?
Upvotes: 0
Views: 1017
Reputation: 1462
You have to check the item
field, there you'll find the item the update belongs to.
In your case ("new posts added to the wall") you have to filter for post
in your code. Additionally you have to check the verb
, because you get updates on edit and delete, too.
Upvotes: 1