2

meteor アプリを作成し、accounts-facebook パッケージを追加しました。Chrome から {{loginButtons}} を使用してサイトにログインできます (Linux ローカルおよび別のマシンから) - ただし、Android 経由で (同じネットワーク上で) ログインしようとすると、Facebook ポップアップ レポート: HTTP 500 エラー。

私のサーバー側の js は次のようになります。

Meteor.startup(function () {
    // code to run on server at startup
    try{
    Accounts.loginServiceConfiguration.remove({
        service : "facebook"
    });
    Accounts.loginServiceConfiguration.insert({
        service : "facebook",
        appId : xxxx,
        secret : xxxxxxxxxxxxxxxxxx
    });


    Accounts.onCreateUser(function(options, user) {
        console.log('creating user');
        //Do create stuff here
        // We still want the default hook's 'profile' behavior.
        if (options.profile)
            user.profile = options.profile;
        return user;
    });

    }catch(err){
      console.log(err.message);
    }
});

助言がありますか?

どうもありがとう。

4

0 に答える 0