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.