Unable to Access User's email. Getting “Undefined”

后端 未结 7 2062
日久生厌
日久生厌 2021-01-13 19:13

I have a website with the Facebook login implementation. My app has the permission for the user\'s email. Even though the user logs into my app using Facebook I can only ret

7条回答
  •  情深已故
    2021-01-13 19:56

    you probably don't have email permission even though you think you do.

    Try,

    FB.login(function(){
        FB.api('me',
        function(response){
                console.log(response.email);
        });
    },{'scope':'email'});
    

提交回复
热议问题