dtdr57046 2013-11-16 15:19 采纳率: 100%
浏览 7
已采纳

如何在Facebook上检测用户并相应地向他们显示消息

Our website gets a lot more traction than the facebook page, and I know for sure that more than half the visitors on the website are coming there from referrals by friends (engaging on something their friend liked or shared on facebook). So what I am trying to do here is figure out a way to detect whether someone is using facebook at the time and then detect if they have not already liked our page. The message would be a simple "Like us for more/etc." and a like button.

I looked through several questions but they didn't solve what I am trying to achieve. They require that a user approve the app first.

How to check if a Facebook user liked an FB page from an external website

Check if a user likes my page via website

Thank you

  • 写回答

1条回答 默认 最新

  • dppxp79175 2013-11-16 15:47
    关注

    There are only 2 ways to detect if someone likes a Facebook Page:

    • In a page app/tab, with the signed_request parameter, and without authorization of the user (see "getSignedRequest" function in the PHP SDK)
    • On an external website ONLY by authorizing the user with the "user_likes" permission first

    ...and then there are the Social Plugins, you may want to try that one (for example): https://developers.facebook.com/docs/plugins/like-box-for-pages/

    Although what you want is just not possible, but you already found out about that ;)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教