如何查看有人分享了我的信息页?使用Facebook API [英] How to check if someone shared my page's post? Using Facebook API

查看:175
本文介绍了如何查看有人分享了我的信息页?使用Facebook API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用户的read_stream访问权限,如果他分享了我的一个页面的帖子,我想给他一些积分。现在我有Claim Point按钮,所以我可以抓住他的帖子,我想检查他是否分享了我的页面的帖子(使用Facebook的分享链接,附近的评论和喜欢)。我有一个想法,如果有人分享他人的帖子,它似乎是一个链接,所以我试图将链接与我的页面的链接相匹配,但如果它的一个Facebook链接(或发布像状态,注释),然后 url 下面的FQL表单返回 null 。与Graph API相同(链接不显示)。

  select url,link_id,title from link where owner = my( )

如果它的外部链接(对我没有帮助),它可以正常工作。 >

那么这里有什么问题?



任何帮助都不胜感激。

解决方案

我找到了一个解决方案。普通电话根本不返回共享帖子的链接。但是Feed返回,所以爬行Feed使我的任务完成。


https://graph.facebook.com/me/feed/?access_token=your_access_token



I have the read_stream access from user, I want to award him some points if he shares one of my pages' post. Now I have Claim Point button so I can crawl his posts, and I want to check if he has shared my page's post (using Share link of Facebook, near Comment and Like ). I had an Idea, if someone shares others' post it appears as a link, so I tried to match the link with my page's link, but if its a Facebook link (or post like status, note) then url form below FQL returns null. Same happens with Graph API (link doesn't appear).

select url,link_id,title from link where owner=me()

It works fine if its an external link (which is not helpful for me).

So what's the problem here? And I am open to other ideas, to check if user has shared my post.

Any help is appreciated.

解决方案

I have found a solution. Normal calls don't return Shared Posts' links at all. But Feed returns, so crawling feed makes my task done.

https://graph.facebook.com/me/feed/?access_token=your_access_token

这篇关于如何查看有人分享了我的信息页?使用Facebook API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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