In facebook connect, how can I check if a user is a fan of my facebook page? Is it possible to track?

后端 未结 3 1838
臣服心动
臣服心动 2020-12-30 17:55

I am trying to determine if a user is a facebook fan. I load the facebook JS library and initialize:



        
3条回答
  •  萌比男神i
    2020-12-30 18:29

    not sure if this is helpful at all, but I inspected the DOM with firebug and I found that it has moved onto the Facebook object

    var pageID = 'your page';
    var uid = FB.Facebook.apiClient.get_session().uid;
    FB.Facebook.apiClient.pages_isFan(pageID, uid, function(result){ alert("boo!");});
    

提交回复
热议问题