Facebook Graph API /me/Feed V2.4 vs V2.3

元气小坏坏 提交于 2019-12-06 09:36:58
Nishant Ghodke

Since the upgrade in Graph API i.e. version 2.4. You have to specifically pass a fields parameter with the relevant keyword of which, data you would like to retrieve.

Please refer to this document of Facebook Developers

Changes from v2.3 to v2.4

Declarative Fields

To try to improve performance on mobile networks, Nodes and Edges in v2.4 requires that you explicitly request the field(s) you need for your GET requests. For example, GET /v2.4/me/feed no longer includes likes and comments by default, but GET /v2.4/me/feed?fields=comments,likes will return the data. For more details see the docs on how to request specific fields.

An example of v2.4:

<page_id>/feed?fields=id,message,picture,likes,shares,comments
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!