2016-09-08 6 views
0

Instagramログインを処理するためにhttps://github.com/meteor-helium/instagramパッケージを使用しています。自分のサーバー/社会config.jsのでMeteor OAuth Serverエラー:InstagramでOAuthハンドシェイクを完了できませんでした

、私は私が持っている、私は私のクライアント/ main.jsで

<template name="login"> 
{{#if currentUser}} 
    <button id="logout">Logout</button> 
{{else}} 
    <button id="instagram-login" class="btn btn-default"> Login with Instagram</button> 
{{/if}} 
</template> 

を持って、私のクライアント/ main.htmlをで

ServiceConfiguration.configurations.remove({ 
    service: 'instagram' 
}); 
ServiceConfiguration.configurations.insert({ 
    service: 'instagram', 
    clientId: '****', 
    secret: '****' 
}); 

を持っています

Template.login.events({ 
'click #instagram-login': function(event) { 
    Meteor.loginWithInstagram({}, function(err){ 
     if (err) { 
      throw new Meteor.Error("Instagram login failed"); 
     } 
    }); 
}, 

'click #logout': function(event) { 
    Meteor.logout(function(err){ 
     if (err) { 
      throw new Meteor.Error("Logout failed"); 
     } 
    }) 
} 
}); 

私は「Instagramのアカウントでサインイン」ボタン

をクリックしたときに、私は次のエラーを取得します
Error in OAuth Server: Failed to complete OAuth handshake with Instagram. failed [400] {"code": 400, "error_type": "OAuthException", "error_message": "Invalid Client Secret"} 

答えて

関連する問題