本文介绍了Facebook API for Share返回空结果集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Facebook的新手。我正在建立一个Facebook应用程序,以获取所有以表格格式分享,评论和喜欢帖子的人的名字。我可以通过Facebook API获得类似和评论的详细信息,但找不到和适当的API来获取分享详情。



我正在使用





此API返回空结果集。我已经授予access_tokn的所有可用权限。任何人都可以告诉我,有没有其他的API可以使用。我看到一个可以分享Facebook页面的选项,但我不想这样做,因为Facebook不断更新每一件事情。

解决方案

我和你有同样的问题,但我想我会向前迈进一步。
尝试添加一个限制到您的共享信息,也许它会返回一些数据:
尝试这样:

  https://graph.facebook.com/post_id/sharedposts?access_token=my_access_token&limit=1000 


编辑:也许问题可能是,尽管您已经授予了令牌所有的许可证,但是分享该帖子的人员也接受该权限。
除此之外,您的JSON不会返回任何数据。


I am new to Facebook API. I am building a Facebook app to fetch all the name of people who shared, commented and liked a post in a tabular format. I am able to get the like and comment details through Facebook API but can not find and proper API to get the share details.

I am using

https://graph.facebook.com/post_id?fields=sharedposts&access_token=my_access_token.

This API is returning an empty result set. And I have granted all the available permission to the access_tokn. Can anyone tell me ,Is there any other API that I can use. I saw a option of scraping the Facebook page for share,but I don't want to go that way because Facebook keeps on updating every thing.

解决方案

I'm having the same problem as you, but I think I'm going a little step forward.Try adding a limit to your sharedposts and maybe it will return some data:Try this way:

https://graph.facebook.com/post_id/sharedposts?access_token=my_access_token&limit=1000

That should work for a regular post.

EDIT: Maybe the problem could be that althought you have granted all the perms to the token, the people who share that posts have to accept that permission too.Otherway your JSON won't return any data.

这篇关于Facebook API for Share返回空结果集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 10:12