How do I redirect user to Instagram App instead of opening their browser in Flutter app?

411 Views Asked by At

I am integrating connect using Instagram feature in Flutter. Currently Flutter only allow users to open the Instagram using their mobile browser instead of opening the app.

The flutter launch url behavior can only choose to launch in app web view / external browser. Below is the code used.

sample link:
https://api.instagram.com/oauth/authorize?client_id=xxx (not www.instagram.com as it's for OAuth)

package used: url_launcher

code used:

launchUrl(
  Uri.parse(igLink),
  mode: LaunchMode.externalNonBrowserApplication,
);

I tried the one mentioned here: How do I open instagram from flutter app?

It only worked for www.instagram.com but not when we are using the API.

How can I make it open using instagram for authorization instead of browser?

Thanks!!

0

There are 0 best solutions below