PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, July 16, 2022

[FIXED] How to use instagram API for Login

 July 16, 2022     facebook-login, instagram-api, instagram-graph-api, oauth, react-native-instagram-login     No comments   

Issue

I have been trying to implement the OAuth flow for Instagram login with Instagram official APIs but seems like a lot has changed since June 2020 and I haven't had any luck to get any help for the Instagram Oauth login flow that can return a user email which can later be used to keep track of the user registration via Instagram API.

Instagram official documentation says that they don't recommend using Instagram Basic Display API for login here: https://developers.facebook.com/docs/instagram-basic-display-api

Can someone guide me on how to get the user information like email or at least username in return from the Instagram API.

Any help will be highly appreciated. Thanks


Solution

It is not possible to get an email from Basic Display API. You will not be able to get the email from the API responses. You can get the user ID from Instagram when you will exchange the code obtained via Authenticate to access token. Later on when you will have the valid access token you can get the username. I would recommend checking out Getting Started from that API: https://developers.facebook.com/docs/instagram-basic-display-api/getting-started it shows how to get user_id (step 5) and username (step 6).



Answered By - Astaz3l
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing