How to get url after hiting a link?

Hi everybody,
I’m trying to retrieve parameters in the url after hiting a link like <a href="myurl">.
The thing I try to do it’s to connect user with his instagram account so he click on the link to be authentificated in the instagram api and after that I need to retrieve the access token they gave me with the callback url.

It’s this possible or not please?

It is definitely possible…even if you hardcode with string function…
But how come the third party api return url instead of a json object?

Thank you for your answer but you mean possible or impossible?
For the oauth, Instagram return to the specified callback url and add the access token to the url like that:
http://mysite.com/callback.php?code=mycode

Why not use this?:

http://ngcordova.com/docs/plugins/oauth/

Regards,

Works perfectly with this plugin and it’s very easy. Thanks you a lot!

No problem! Glad I could help :smile: