如何检查网站访客是否是我的 Facebook 页面的粉丝?
有人可以帮助我如何检查我网站上的访客是否是我 Facebook 页面的粉丝,提前致谢。 问候
can someone help me please how to check is visitor on my website fan of my facebook page,thanks in advance.
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是使用图形 API。向 https://graph.facebook.com/me/likes? 发出请求fields=id&access_token=....
您将收到一个 JSON 对象,如下所示:
]
由此,
您可以迭代喜欢的内容,直到找到您正在寻找的喜欢的内容是否存在。如果您不知道您的网址 ID,您只需转到 http ://graph.facebook.com/http://www.mydomain.com/myurl,您将获得一个包含页面 ID 的 JSON 结果。
The easiest way to do this is using the graph API. Make a request to https://graph.facebook.com/me/likes?fields=id&access_token=....
You will recieve a JSON object back that looks like this:
]
}
From this you can just iterate through the likes until you find if the like you are looking for exists. If you don't know the id of your Url you can simply go to http://graph.facebook.com/http://www.mydomain.com/myurl and you will be given a JSON result that contains the ID of your page.