錯誤的Instagram:重定向URI不匹配,註冊重定向URI
{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}
上出現了
https://instagram.com/oauth/authorize?response_type=code&client_id=2fa4359e4340434786e469ab54b9b8c0&redirect_uri=http://localhost:8000&scope=likes
Instagram的設置
CLIENT ID 2fa4359e4340434786e469ab54b9b8c0
WEBSITE URL http://localhost:8000/
代碼
$authProvider.oauth2({
name: 'instagram',
url: 'http://localhost:3000/auth/instagram',
redirectUri: 'http://localhost:8000',
clientId: '2fa4359e4340434786e469ab54b9b8c0',
requiredUrlParams: ['scope'],
scope: ['likes'],
scopeDelimiter: '+',
authorizationEndpoint: 'https://api.instagram.com/oauth/authorize'
});
任何幫助將不勝感激。謝謝!