I’m going to make login with Instagram to my website.
The website would control Instagram media with user’s Instagram account. The website visitors are consumers.(i.e. non-business or non-creator)
So I should use Instagram basic display API (can’t use Instagram graph API because that needs users to be a business or creator.)
I’ve tried to implement "login with Instagram", but the developer guide says
Instagram Graph API cannot access Instagram consumer accounts (i.e., non-Business or non-Creator Instagram accounts). If you are building an app for consumer users, use the Instagram Basic Display API instead.
Instagram Basic Display is not an authentication solution. Data returned by the API cannot be used to authenticate your app users or log them into your app. If you need an authentication solution we recommend using Facebook Login instead.
So I made "login with Facebook" button, but the problem is that if I log in with Facebook with Instagram scopes, that asks me to create Instagram business account while logging in. Oops. I returned to the first position.:(
What a loop? What’s the solution? Did I understand the guide incorrectly?
2
Answers
Why don’t we use laravel socialite package replied on Upwork for the same.
https://socialiteproviders.com/Instagram/#installation-basic-usage
Maybe you can use this approach
EDITED AFTER DISCUSSION IN COMMENT
No need to use library first you have to follow instruction from this link https://developers.facebook.com/docs/instagram-basic-display-api/getting-started
FYI I Use Laravel to create this simple app https://youtu.be/Qhg9vfB68J8?t=9
and my controller look like this
I know that code is not clean. You tweak the code to clean it. Maybe you can move your appId,Secret, redirectUrl to config file or .env file