查找谁公开共享了一个链接,并找到了谁重新共享了给定的链接 [英] Finding who shared a link publicly and finding who reshared a given link

查看:87
本文介绍了查找谁公开共享了一个链接,并找到了谁重新共享了给定的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关跟踪共享链接的两个问题:

Two questions regarding tracking shared links:

  1. 我有一个URL,我想获取该URL的公开共享列表.我发现这在stackoverflow上已经被回答了几次,声称这是不可能的,但是我不明白为什么不允许这样做.如果我可以查询给定搜索关键字的公共帖子,例如: https://graph. facebook.com/search?q=watermelon&type=post ,那么为什么我不能使用URL作为搜索查询?还是有一种我可能以某种方式错过的方法?

  1. I have a URL and I want to get a list of public shares for that URL. I found this was answered a couple of times here on stackoverflow claiming it's impossible, but I don't understand why this is not allowed. If I can query public posts for given search keywords, like: https://graph.facebook.com/search?q=watermelon&type=post, then why can't I use URLs as my search query? Or is there a way to do this that I just missed somehow?

假设我在链接" FQL表中有一个共享URL的link_id.如何找到该链接的转发? (可能在Facebook网站上.)

Let's say I have a link_id for a shared URL in the "link" FQL table. How can I find reshares of that link? (As possible in the Facebook website.)

为试图找到上述两个问题之间的中间点,我尝试执行此FQL查询:

As an attempt to find middle ground between the above 2 problems, I tried to perform this FQL query:

SELECT link_id, owner, title FROM link WHERE url="<url>" AND (
    owner = me() OR owner IN (SELECT uid2 FROM friend WHERE uid1 = me())
)

但这失败了,并显示错误:

But this failed, with error:

<error_response xmlns="http://api.facebook.com/1.0/">
    <error_code>1</error_code>
    <error_msg>An unknown error occurred</error_msg>
</error_response>

推荐答案

  1. 我认为在链接表上执行FQL查询时无法基于URL搜索,因为url列不可索引.可索引的列在Facebook FQL链接上标有星号参考.

因为唯一可索引的列是link_id和owner_id,所以我认为您不能在此表上使用FQL来解决您的问题.您可以将所有可用链接加载到您的应用程序中,然后通过它们进行解析,但是该API调用可能需要很长时间.

Because the only indexable columns are link_id and owner_id, I do not think you can use FQL on this table to solve your problem. You could potentially load all available links into your application and then parse through them, but that API call can take a long time.

如果您只想搜索公共帖子,则可以尝试将URL直接放入公共图形搜索的查询区域.例如,如果我想搜索对www.google.com的引用:

If you want to just search public posts, you could try putting the url directly into the query area of your public graph search. For example, if I wanted to search for references to www.google.com:

获取 https://graph.facebook.com/search ?q = www.google.com& type = post

这篇关于查找谁公开共享了一个链接,并找到了谁重新共享了给定的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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