admin管理员组

文章数量:1123347

I’m working on integrating Instagram authentication into my app to retrieve the username and userId using the Graph API. Previously, Instagram supported the Instagram Basic Display API, but it was deprecated after December 4, 2024. Now, we need to use either the Instagram API with Instagram Login or the Instagram API with Facebook Login.

While setting up the app in the developer account, I noticed that the Instagram product is only available if the app type is set to “Business.” If the app type is set to “Consumer,” Instagram cannot be added as a product, meaning I cannot generate the appId and appSecret required for OAuth.

To work around this, I created the app as a “Business” type and added Instagram as a product. I was able to complete the OAuth flow, retrieve the authorization code, and generate an access token. Using the access token, I attempted to fetch user details, and all steps seemed correct. However, when logging in with my credentials, Instagram prompts me to switch my account to a professional account.

I want to avoid showing this prompt to my users and requiring them to switch to a professional account. Is there a way to retrieve user details without requiring the account to be professional? Additionally, is it possible to perform OAuth and retrieve user details using an app created with the “Consumer” app type?

本文标签: