Instagram Display API Insufficient Developer Role - facebook

I have followed the tutorial on Instagram Display API, created my redirect_uri on ngrok and correctly assign my app_id. Here is the response I get.
{
"error_type": "OAuthException",
"code": 400,
"error_message": "Insufficient developer role"
}
What should I do? I am an Administrator so I can't assign myself as a Developer.

Go to Roles > Instagram Users and add your Instagram account. Then go to https://www.instagram.com/accounts/manage_access/ to accept the Tester Invite from your app.

What fixed this for me when trying to use this link:
https://api.instagram.com/oauth/authorize
?app_id={app-id}
&redirect_uri={redirect-uri}
&scope=user_profile,user_media
&response_type=code
... was being logged in as the accepted Testing User in the same browser session.
I had logged in as that user in an Incognito window, and originally the link was returning that Insufficient Developer Role error when I was trying it in my normal browser window.
Once tried to go to it in the incognito window, it worked just fine.
Let me know if this fixes it for you. Otherwise, I also went to my Developer Settings and did the Individual Verification, although my ID hasn't been approved yet and it still worked.

So some things you really need to be careful for:
You need two accounts to make this work:
Admin Acc (fb acc, dev.fb acc, instagram)
Tester Acc (fb acc, dev.fb acc, instagram)
There are two types of testers:
TESTER
INSTAGRAM TESTER
There are two types of ID's:
APP ID: xxxxxxxxxx
INSTAGRAM APP ID: xxxxxxxxx
To make sure your Instagram Basic Display works, you need to have the correct "Instagram tester". Only this option will create the tab "tester invites" in Instagram apps and websites.
Then you need to Authorize your app with the following URL:
(Add your own instagram-app-id and your own redirect-uri)
https://api.instagram.com/oauth/authorize?client_id={instagram-app-id}&redirect_uri={redirect-uri}&scope=user_profile,user_media&response_type=code
For me, it only worked by copy and pasting it into an Incognito window.
Again, important! When you use the Instagram App ID from your Admin account, you need to log in with your Tester Account or you will get an error message.

Related

Instagram OAuth API returns "insufficient_dev_role" 400 error

I have a Facebook app in Live mode, that has passed review and has Instagram Basic Display set up, having passed review for the following permissions: instagram_graph_user_profile and instagram_graph_user_media.
According to the documentation, if I visit https://api.instagram.com/oauth/authorize?app_id=[my app ID]&redirect_uri=[My app redirect URL]&scope=user_profile,user_media&response_type=code in a browser and authenticate, I should be redirected back to my redirect URL with a code.
However, if I try that with any user who I have not explicitly set up as an Instagram Tester, I receive the following error, even though my app is in Live mode:
{
"error_type": "OAuthException",
"code": 400,
"error_message": "insufficient_dev_role"
}
Note that another similar question was asked a few months ago - the difference in this case is that my app is in Live mode, and therefore should allow any user to authorise via OAuth, while for the other question the app was still in Development mode, so the issue was adding appropriate Instagram Testers.
This has been identified as a known issue that Instagram is working to fix.

How do I test Facebook integration (retrieving a user's friendlists) before the app is approved?

I've tried requesting permissions in my app, but the FB login popup contains a red error message saying that the app must be approved before it can request the user_friendlists permission.
How is this possible if the review/approval process requires a working test version of the app?
The problem is similar to this question: Testing Facebook integration prior to approval except mine is a website so the solution there doesn't apply.
The user logging into facebook from the app must be listed under the Tester roles in the app settings. The tester also has to be a profile other than the administrator, which you probably are if you created the app, and it must have a profile picture and be friends with the administrator.

How to get user_photo permission app approval on facebook?

I can't seem to get my app approved on facebook for photo approval. The problem is that Facebook says I haven't demonstrated how my app use photos so they can't approve that permission. However I can't show them how my app uses photos because its not approved for users to give that permission! Its a catch-22.
I need to give facebook an account that they can use to connect to my app and see how I pull in user photos. The website is already built using the PHP SDK and its configured to redirect the user to facebook's oauth page where they are prompted for permission. However at this point any username except mine (the developer) sees this:
The following permissions have not been approved for use and are not being shown to people using your app: user_photos.
Submit them for review or learn more.
So therefore the account cannot grant photo permissions and the app doesn't work right. So facebook won't approve it. How do you get around this catch-22? Things I've tried:
Creating a facebook test user through their dashboard, it still doesn't have permission to grant photo access
Creating a real facebook account, uploading photos, and then making that user an "administrator" of my app. Still cannot grant photo access.
This is very frusterating, anyone have any ideas?
Your App must be created before 30 April 2014 then use it in facebook
Like your AppName Huus then it is created before 30 April 2014 in facebook
This all means you haven't created a test user correctly. If you create a test user from
https://developers.facebook.com/apps/{your-app-id}/roles/test-users/ (App Settings > Roles > Test Users), the user will have access to any and every permission, even if they've not been approved by Facebook.
When asking for permission, I got no error or warning about unapproved permissions.
I was able to create a test user for my app, logged in and was able to access unapproved permissions. Screenshot is proof.

Facebook App without owner

Suddenly I couldn't find my Facebook App in Developer Apps section, I used my 'App Access Token' to get the app roles through Facebook Graph API but the surprise was that my app has no owner, I think someone got my 'App Access Token' and removed all the admins from the app, The problem is [My Facebook App has no owner]. any ideas to get it back ?
Facebook Applications API
This is obviously a graph API bug, because 'Must specify at least one developer who has administrator permission.' error dialog would pop up if you delete the last admin(you) on https://developers.facebook.com/apps/APP_ID/roles. Report the bug on https://developers.facebook.com/bugs, and also ask them how to contact for recover your apps.

Facebook App - Prompt permission to post

I have created an app. It does not prompt users to Post on Wall permission, after the GO to App popup. I have given the following settings for my app in developer account.
User & Friend Permissions: email,user_activities,user_likes,publish_actions
Extended Permissions: publish_stream,read_stream,offline_access
When i click a "Preview Login Dialog" link, it shown the following rights in "GO to App" popup.
THIS APP WILL RECEIVE:
Your basic info
Your email address
Your activities
Your likes
But, when i access the app at the first time, it shown the following rights alone.
THIS APP WILL RECEIVE:
Your basic info
Due to this, i could not post on well. I have checked.
Similarly, i have checked user's app setting page.
User account has no option like the below.
* Post on your behalf
* Access posts in your news feeds
What is wrong? I spent more than 3 hours to find out.
Be sure that you have expected permissions set in the scope parameter of method invoking the login dialog:
FB.login(function(response) {
// handle the response
}, {scope: 'email,user_activities,user_likes,publish_actions,etc...'});
And just in case, to be sure that you will have needed permissions before doing something that needs them, try handling revoked premissions, as I pointed here.
BTW, be sure to request only permissions your app really needs. You can scare users with so many permissions. ;)