I am getting Invalid Scope for user_profile
3

Users are getting error "Invalid Request: Request parameters are invalid: Invalid scope: user_profile"

Morgan
Asked about a month ago
Selected Answer
1

Hey Morgan, create config_id instead of directly write scope and user_profile you need an access from request access from the app

December 5 at 9:05 PM
Hitesh
2

My team recently encountered this issue.

The reason for this was that Instagram had deprecated their Basic Display API (which we were still using). Thus, users can not authenticate in this way. Fortunately, the fix is simple. You need to simply change the scope permissions to the new valid scope permissions: - instagram_business_basic - instagram_business_content_publish - instagram_business_manage_comments - instagram_business_manage_messages

So if your URL looked like this before:

 js
const instaUrl = `https://api.instagram.com/oauth/authorize?client_id=${instaAppId}&redirect_uri=${instagramRedirectUrl}&scope=user_profile,user_media&response_type=code`;

It should now look like this (notice the scope param):

const instaUrl = `https://instagram.com/oauth/authorize?client_id=${instaAppId}&redirect_uri=${instagramRedirectUrl}&scope=instagram_business_basic&response_type=code`;
December 6 at 2:54 PM
Danh