Graph api 并不总是准确返回谁喜欢帖子?
Graph Api 返回确切的“喜欢”数量,但对于喜欢该帖子的人来说还不够。
print_r 的结果:
[likes] => Array
(
[data] => Array
(
[0] => Array
(
[name] => Mai Khánh
[id] => 100000041712337
)
[1] => Array
(
[name] => Thinh Truong
[id] => 100000273822852
)
)
[count] => 4
)
有什么想法吗?我发现一些问题与我的几乎相似,但不一样。
Graph Api return exactly number of "likes" but not enough for who like that post.
result for print_r:
[likes] => Array
(
[data] => Array
(
[0] => Array
(
[name] => Mai Khánh
[id] => 100000041712337
)
[1] => Array
(
[name] => Thinh Truong
[id] => 100000273822852
)
)
[count] => 4
)
Any idea for that ? I found some question nearly similar to mine, but not the same.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是以下两件事之一:
Facebook api 对点赞/评论的数量快速而宽松。通常是估计的。查看评论数量较多的帖子。当您扩展更多时,数字会发生变化。这以及与开发人员的对话表明,这个数字并不是绝对的。
这可能是分页问题。确保您没有传递任何会限制搜索的查询参数,例如页数、限制、偏移量或自始至终。
It could be one of two things:
The facebook api plays fast and loose with the numbers of likes/comments. Often it is estimated. Look at a post with a high number of comments. As you expand more the number changes. This, as well as conversations with their developers, suggest that the number is not absolute.
This could be a paging issue. Make sure you aren't passing any query parameters that would limit your search such as page, limit, offset, or since.