如何查询Facebook Pages共享的链接? [英] How do I query links shared by Facebook Pages?

查看:131
本文介绍了如何查询Facebook Pages共享的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用图形 / me / likes 获取用户的页面/喜好列表。但是如何返回这些页面共享的链接列表?

I can get a user's page/likes list using the graph /me/likes. But how can I return a list of links shared by these Pages?

例如,假设用户喜欢 Facebook平台页面。我可以使用 / me来拉这个ID( 19292868552 ) / likes graph api。但是我如何拉扯Facebook平台页面在其页面上共享的链接?

For example, let's say a user likes the Facebook Platform Page. I can pull this id (19292868552) using the /me/likes graph api. But how can I pull the links that the Facebook Platform Page has shared on their page?

对于常规用户,您可以执行以下操作:

For a regular user you would do something like this:

示例FQL:

SELECT link_id, title, summary, url FROM link WHERE owner IN (19292868552);

但是对于Facebook页面(像上面的Facebook平台页面示例),返回null。但实际的 Facebook平台页面显示了数十个链接(至少)。如何获取这些页面共享的链接?

But for Facebook Pages (like the above Facebook Platform Page example), this returns null. But the actual Facebook Platform Page shows dozens of links (at least). How can I get the links shared by these pages?

您可以在这里测试:
FQL查询测试控制台

推荐答案

我在这里的晚会稍晚,但我以为我会在这里发布我的主要例子 。 fbconsole通过 Facebook Graph API 提取数据非常简单,以解决此问题。

I'm a little late to the party here, but I thought I'd post my gist example here. fbconsole makes it fairly simple to extract data through the Facebook Graph API to address this issue.

需要注意的是,通过fbconsole以编程方式提取数据并不是非常简单,所以我写了 fbconsole.automatically_authenticate 以便系统地访问这些信息更容易。此补充尚未纳入 fbconsole的主分支(今天早上刚刚发布),但是在此期间,有兴趣的人可以此处

The caveat is that it was not terribly easy to programmatically extract data through fbconsole so I wrote the fbconsole.automatically_authenticate to make it much easier to access this information in a systematic way. This addition has not yet been incorporated into the master branch of fbconsole (it was just posted this morning), but it is available here in the meantime for those that are interested.

这篇关于如何查询Facebook Pages共享的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆