-2

Facebook 接続のアクセス許可を取得できないようです。ここに私が持っているものがあります:

window.fbAsyncInit = function() {
    FB.init({
        appId      : 'myID', // App ID
        channelUrl : 'myChannel', // Channel File
        status     : true, // check login status
        cookie     : true, // enable cookies to allow the server to access the session
        xfbml      : true,  // parse XFBML
        oauth      : true
    });
    FB.Event.subscribe('auth.authResponseChange', function(response) {
        if (response.status === 'connected') {testAPI();} 
        if (response.status === 'not_authorized') { FB.login(function(response) {}, {scope: 'email,user_likes'});} 
        else { FB.login(function(response) {}, {scope: 'email,user_likes'});}
    });
};

(function(d){
    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement('script'); js.id = id; js.async = true;
    js.src = "//connect.facebook.net/en_US/all.js";
    ref.parentNode.insertBefore(js, ref);
}(document));

ログインボタンを押すと、次のように尋ねられます。

MyApp があなたの公開プロフィールと友達リストにアクセスしようとしています。

私は何を間違えましたか?

4

1 に答える 1