开发者

FB.api - are users unique?

开发者 https://www.devze.com 2023-03-18 22:02 出处:网络
So 开发者_Go百科in my app, I do this: FB.api(\'/me\', function(response) { alert(response.name); });

So 开发者_Go百科in my app, I do this:

FB.api('/me', function(response) {
  alert(response.name);
});

This gives me the users name IF they are logged into FB through my site. Now, is there a way I can get a unique ID for them as well? That way everytime they post something on my site, I can store their post along with their FB name AND Id, and then I know which posts they have made in the past when they are connected to their FB through my site.


You can use response.id to get the Facebook Users unique id.

0

精彩评论

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