获取类似 Facebook 的源信息
查看此页面的底部,似乎可以得到关于特定页面的点赞来源的 Facebook 数据。不幸的是我不知道如何做到这一点。
理想情况下,我想要一种不使用 fql 的方法,例如:
https://graph.facebook.com/PAGE_ID/insights/SOURCE_NAME?access_token=ACCESS_TOKEN
但如果那不可能,我至少认为可以使用类似的方法通过 fql 来完成:
https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=PAGE_ID AND metric='SOURCE_NAME' AND period = period('month')&access_token=ACCESS_TOKEN
但这只会返回带有错误消息 Invalid 的 xml指标名称:SOURCE_NAME
对于我尝试使用的任何源名称。
访问这些数据的正确方法是什么?或者脸书只是想戏弄我?
Looking at the bottom of this page it would appear that it is possible to get facebook data on where likes are coming from for a particular page. Unfortunately I can't figure out how to do this.
Ideally I would like a method that doesn't use fql something like:
https://graph.facebook.com/PAGE_ID/insights/SOURCE_NAME?access_token=ACCESS_TOKEN
But if that's not possible I would at least think it is possible to do through fql using something like:
https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=PAGE_ID AND metric='SOURCE_NAME' AND period = period('month')&access_token=ACCESS_TOKEN
but this just returns the xml with the error message Invalid metric name: SOURCE_NAME
for whatever source name I'm trying to use.
What is the proper way to access this data? Or is facebook just trying to tease me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我正在寻找的查询是这样的
The query I was looking for was something like
您可以尝试使用此图形 API,如下所示:
You can try this graph API as below: