Login on firebase using Instagram in a Flutter application.

936 views
Skip to first unread message

Quentin Noguier

unread,
Jun 29, 2018, 7:26:50 PM6/29/18
to Firebase Google Group

Hello !


I need to implement an Instagram login to a flutter Firebase based app


I successfully implemented a Instagram login in flutter via a webview (using https://github.com/WillyShakes/flutter_auth)

I also successfully implemented a web Instagram Firebase login using https://github.com/firebase/functions-samples/tree/master/instagram-auth

The problem is I can’t get the two working together, via the first plugin I get a Instagram token.
Yet the web integration demand an auth code which in the solution appear in a get request after Instagram login and I don’t manage to get the equivalent in flutter.


I saw this implementation for slack but it doesn’t seam really compatible with what I get after my Instagram login :
https://github.com/Kunstmaan/flutter_slack_oauth_firebase


- I think the general Idea is :
- Login via webview in flutter to get Instagram token.

- Send (something) from this token to a Firebase cloud functions

- The function try login herself to Instagram to check the user’s information.

- If everything is alright create or update a Firebase user

- Return a Firebase user to flutter.


The problem is I don't know what I must send to my Firebase cloud function to check the Instagram info I have and who to use the info I send to my cloud function.

Quentin Noguier

unread,
Jul 2, 2018, 10:53:12 AM7/2/18
to Firebase Google Group
I tried something new :

-Login client side (like before).
-take only the autorization_code and don't login
-send the authorization_code the the cloud function and try getting a token with Oauth2 (this is what the working web version is doing)

But I get a 'Bad Request' error, is there something liked to the cookies or idk forbidding me to get a token with Oauth2 on the cloud function ?

Dan Dushinsky

unread,
Jun 21, 2019, 7:17:51 PM6/21/19
to Firebase Google Group
Did you try on IOS?
Not working for me...
Reply all
Reply to author
Forward
0 new messages