Facebook图形API {post-id}/likes返回空数据
此请求返回一个空数组:graph.facebook.com/773227196065108/likes
,但此请求返回一个普通数组:graph.facebook.com/576234822476425/likes
.
This request returns an empty array: graph.facebook.com/773227196065108/likes
, but this request returns a normal array: graph.facebook.com/576234822476425/likes
.
第一篇帖子-用户的帖子,第二篇帖子-页面的帖子.
First post - post from user, second post - post from page.
在第一种情况下如何获得正常结果?
How do I get a normal result in the first case?
773227196065108
是用户,而576234822476425
是页面.可以在API中检查公共页面帖子,公共用户帖子具有某些限制,例如,查询的用户也必须使用该应用程序.如果查询的用户未使用查询应用程序,则响应为空.
773227196065108
is a user whereas 576234822476425
is a page. Public page posts can be inspected in the API, public user posts have certain restrictions applied to them such as, the queried user must be using the application as well. If the queried user isn't using the querying application the response will be empty.
此外,/me/likes/773227196065108
不适用于/me/likes
,仅适用于非帖子页面.
In addition /me/likes/773227196065108
will not work as /me/likes
are only for pages not posts.