开发者

get facebook userId once they like they page/website

开发者 https://www.devze.com 2023-03-29 18:18 出处:网络
I read that we can get teh facebook userId if someone likes my website.. I found the following code which doesnt seem to work, can anyone please help..

I read that we can get teh facebook userId if someone likes my website.. I found the following code which doesnt seem to work, can anyone please help..

/* FB.Event.subscribe('edge.create', function(href) { session = FB.getSession(); uid = session['uid']; alert(asdsdsa); // do whatever you wan开发者_开发技巧t }); */

regards


You're not going to have access to the particular user who's liked your page unless they login to your site in addition to liking your page.

At that point, with the proper permissions, you can check the like status of the user.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号