Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
352 stars 108 forks source link

Instagram Redirect URL #122

Open kasunnirmala opened 4 years ago

kasunnirmala commented 4 years ago

I am using this on mobile app. So, this open a webview screen and do all the instagram logins and so on successflully. Bu how do I get the token> And how do I generate the redirect URL, and from where should I use that?

MaskyS commented 4 years ago

The token is available in the returned user object. As for the redirect URL, anything goes as long as it starts with HTTPS and you set up a custom URL scheme to redirect to your app when it's loaded in a browser. I wrote a complete guide here if you need more info: https://blog.maskys.com/using-the-instagram-basic-display-api-in-flutter/

rolznz commented 4 years ago

@MaskyS the key here is to use the "very unique URL" as opposed to my actual website URL (which breaks the redirect and my website is opened instead).

bounty1342 commented 2 years ago

@MaskyS, any chance to have the setup for iOS ?