告诉某人是否有“喜欢”我的Facebook页面从我的网站 [英] Telling if someone has "liked" my Facebook page from my website

查看:130
本文介绍了告诉某人是否有“喜欢”我的Facebook页面从我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人在这里有一个Facebook大师的回合。

I was hoping someone is a bit of a Facebook guru round here.

我想要做的是向喜欢我们的人显示一些不同的内容Facebook页面给那些没有使用fb:可见到连接FBML的页面。我知道有可能在Facebook Pages上做到这一点,但是如果可以在我们的网站上进行,我想努力解决。

What I'm trying to do is show some different content to those who have liked our Facebook page to those that haven't using the fb:visible-to-connections FBML. I know it's possible to do this on Facebook Pages but I'm trying to work out if it's possible to do on our website.

有谁知道吗?

推荐答案

作为附注, fb:visible-to-connections FBML是已弃用或接近弃用。我们不能让FBML不再是页面标签,所有这些都应该是使用新的signed_request参数的iframe。使用 signed_request ,您可以提取包含用户是否喜欢当前页面的数据。

As a side note, the fb:visible-to-connections FBML is either deprecated or nearing deprecation. We cannot have FBML is page tabs no more, all should be iframes using the new signed_request parameter. With this signed_request, you can extract data that contains whether the user liked the current page or not.

至于您的问题,不幸的是,由于您不在Facebook上,因此没有 signed_request 。实现目标的唯一方法是:

As for your question, unfortunately there is no signed_request since you're outside of facebook. The only way to do your goal is:


  1. 有一个Facebook登录来识别用户

  2. 查询用户是否喜欢该页面:

  1. Have a facebook login to identify the user
  2. Query if the user has liked the page using:

  • page.isFan using old REST API
  • page_fan table using FQL

/ me / likes 调用Graph API,并查找页

/me/likes call for the Graph API and look for the page

这篇关于告诉某人是否有“喜欢”我的Facebook页面从我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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