Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instagram Basic Display API not available #158

Closed
1stof8 opened this issue Jan 8, 2025 · 13 comments
Closed

Instagram Basic Display API not available #158

1stof8 opened this issue Jan 8, 2025 · 13 comments
Labels

Comments

@1stof8
Copy link

1stof8 commented Jan 8, 2025

Bug description

Starting December 4, 2024, the Instagram Basic Display API will no longer be available.

Steps to reproduce

Set new Token in Backend -> Error: "Invalid request: Request parameters are invalid: Invalid scope: user_profile"
facebook API the "Instagram Basic Display" is missing, removed December 4,2024

Is there an workaround?

@1stof8 1stof8 added the bug label Jan 8, 2025
@MDevster
Copy link
Contributor

MDevster commented Jan 8, 2025

It may well be that an update will be released today.

@marvimarv
Copy link

Thanks! Could you update the documentation as well or please tell me how to use the new Graph-API then? Thanks!

@frederikmoellers
Copy link

I have the same problem. Quick workaround: Patch the file from commit ac5a3e7 yourself. Just edit the PHP file and change user_profile,user_media to instagram_business_basic.
Or, even quicker (and dirtier): Log out of instagram, go to the Contao backend, request a new access token and change the scope in the callback URL in your browser address bar. This worked once for me (not for a second account, though).

This at least refreshes the token. I currently get broken images and videos during the import, but I'm not sure if this is related.

@MDevster
Copy link
Contributor

Use version 2.13.7 for Contao 4.13 and version 2.14.0 for Contao 5.3+ - you can find updated docs here https://pdir.de/docs/de/contao/extensions/socialfeed/configuration/instagram/. A business app is necessary!

@bytehead
Copy link
Contributor

Thank you @MDevster!

@operatorone
Copy link

I created a new app according to the documentation and followed it step by step in two installations.

But after allowing the access to the instagram account – while I'm logged in this Instagram account – I'm repeatedly getting an Internal Server Error. I added the correct https://www.deine-domain.de/_instagram/auth and replaced deine-domain.de with the live URL.

Did somebody also experience this? What could be the problem?

@seibtph
Copy link
Contributor

seibtph commented Jan 16, 2025

@operatorone Can you perhaps send a few screenshots of your app (as email to support AT pdir.de)? Maybe there is an error somewhere?

  • It's a business app?
  • The app is live?
  • Do you have a professionell instagram account? It doesn't works with a personal account.

@operatorone
Copy link

Sure. Will send screenshots

  • It's a business app? – Yes it is
  • The app is live? – Yes it is
  • Do you have a professionell instagram account? – Account is a business account.

@ufeldmann
Copy link

I created a new app according to the documentation and followed it step by step in two installations.

But after allowing the access to the instagram account – while I'm logged in this Instagram account – I'm repeatedly getting an Internal Server Error. I added the correct https://www.deine-domain.de/_instagram/auth and replaced deine-domain.de with the live URL.

Did somebody also experience this? What could be the problem?

Yes, we have the same problem. After you confirm it on Instagram, the redirect to your own page with _instagram/auth and the parameters appears, but only ‘Internal server error’ appears on the page.

@bytehead
Copy link
Contributor

Can confirm - I'll have a quick look into it.

@bytehead
Copy link
Contributor

After debugging this for a while, I can't find any false API requests according to the docs - but getting following error from the API:

{"error":{"message":"Unsupported request - method type: get","type":"IGApiException","code":100,"fbtrace_id":"Ayynv0h8GS (truncated...)

@bytehead
Copy link
Contributor

I could find a way around the error - maybe it's a lack of the documentation.

In the app config under https://developers.facebook.com/apps/ I had to modify the roles (App Roles -> Roles) and add (Add People) an Instagram Tester with the corresponding Instagram account name. After that it worked and I got the long lived access token.

Don't forget to accept the invite to test in the instagram profile under https://www.instagram.com/accounts/manage_access/

Image

@operatorone
Copy link

@bytehead Thanks a lot for your help. This worked great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants