티스토리 뷰

로그인 프로세스에서 이메일 권한을 요청해야합니다.

FB.login(function(response) {
    if (response.authResponse) {
            //user just authorized your app
            
                }
                }, {scope: 'email'});
                

Btw, 이것은 정확합니다 (최신 ES6 화살표 기능도 포함) :

FB.api('/me', {fields: 'name,email'}, (response) => {
     console.log(response.name + ' --- ' + response.email);
     });
     

추가 정보 : http://www.devils-heaven.com/facebook-javascript-sdk-login/



출처
https://stackoverflow.com/questions/39915917
댓글
공지사항
Total
Today
Yesterday
«   2025/06   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30