开发者

Get User Email id on clicking FaceBook 'Like' button?

开发者 https://www.devze.com 2023-03-11 03:35 出处:网络
I want the email address of the user when he/she clicks on the facebook Like button. Here is the code I\'m 开发者_开发问答using:

I want the email address of the user when he/she clicks on the facebook Like button.

Here is the code I'm 开发者_开发问答using:

FB.Event.subscribe('edge.create', function(response) {
  // like clicked
});

But the response only has the HREF.

How do I do this?


Simply you can't!

Even if the user is going to allow/authorize your application and you were asking for their emails (email permission), users may choose not to share it with you and provide you a proxied Facebook email address instead!

0

精彩评论

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

关注公众号