0

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 ?

4

1 回答 1

1

您必须检查该item字段,在那里您会找到更新所属的项目。

在您的情况下(“添加到墙上的新帖子”),您必须post在代码中进行过滤。此外,您还必须检查verb,因为您也会获得有关编辑和删除的更新。

于 2017-08-06T15:08:45.810 回答