sahat/satellizer

Instagram Redirect URI Issue on Cordova

siddmegadeth opened this issue · 0 comments

Hi,

This the error i am getting
{"error_type": "OAuthException", "code": 400, "error_message": "Redirect URI does not match registered redirect URI"}

Below is the prooerty i am using in config block

$authProvider.instagram({
clientId: '',
name: 'instagram',
url: '/auth/instagram',
authorizationEndpoint: 'https://api.instagram.com/oauth/authorize',
redirectUri: window.location.origin,
requiredUrlParams: ['scope'],
scope: ['basic'],
scopeDelimiter: '+',
oauthType: '2.0'
});

Please suggest.What should be the redirect URI on cordova based app