I am getting Invalid Scope for user_profile
3

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

Morgan
質問日時: 約1か月前
選択された回答
1

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

12月5日 21:05
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`;
12月6日 14:54
Danh