javascript - Instagram API redirect uri -


i attempting access token instagram's api having trouble, , believe issue because of redirect uri.

i have redirect uri as: http://socialmediasnapshot.net

however, user signing in http://socialmediasnapshot.net/instagram.html

i tried entering in above address redirect uri, not work. there way make users can authenticate html page? using following code:

$.ajax({     url: 'https://instagram.com/oauth/authorize/?client_id=' + client_id + '&redirect_uri=' + redirect_uri + '&response_type=token',     datatype: 'jsonp',     success: function(req) {         alert('yay')         alert(json.stringify(req))     },     error: function(req) {         alert('boo')         alert(json.stringify(req))     } }) 

according documentation,

https://instagram.com/developer/authentication/

note host , path components of redirect uri must match (including trailing slashes) registered redirect_uri. may include additional query parameters in supplied redirect_uri, if need vary behavior dynamically

so if want work, think have change registered uri http://socialmediasnapshot.net/instagram.html


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -