问题描述
我曾经在流行的代码中检查用户是否是我的页面的粉丝,而他在我的Facebook页面上。现在我想检查用户是否在我的网站上,是我的Facebook页面的粉丝。
I used to use the flowing code to check if the user is a fan of my page or not while he is on my facebook page. Now I want to check if the user is a fan of my facebook page while he is on my WEBSITE.
只是为了描述你在评论中提出的问题)
有些情况需要 user_likes 可能是不必要的,因为流的性质,如果你只需要知道该用户将/需要像某些URL和/或Facebook页面。Update: (just to describe what you asked in comments)
There are cases that requiring user_likes may be unnecessary due to nature of flow, if you only need to know that user will/need to like some URL and/or Facebook Page.您可以通过到 edge .create 事件,一旦用户喜欢页面(将不再喜欢 edge.remove 事件)将触发。
You may do so by subscribing (FB.subscribe) to edge.create event which will be triggered once user will like the page (for un-like there is edge.remove event).
请注意,只有在用户不喜欢该内容之前,只有在 edge.create 仅在用户的动作。
Beware that this is only reliable in cases user didn't liked that content before since edge.create only fired on time of user's action.
这篇关于检查用户是否是我的Facebook页面的粉丝?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!