Hi, our app is no longer able to get a long lived access token in exchange for a short lived access token.
Documentation for the get request. https://developers.facebook.com/docs/instagram-basic-display-api/reference/access_token
curl request that we are making and the error we are getting curl -X GET 'https://graph.instagram.com/access_token?grant_type=ig_exchange_token&client_secret=CLIENT_SECRET&access_token=SHORT_LIVED_TOKEN' Error I Get Back {"error":{"message":"Unsupported request - method type: get","type":"IGApiException","code":100,"fbtrace_id":"AC_X8mykJT39_Tw99llE1np"}}
Is anyone else getting this issue, I suspect it is related to our developer account but nothing has changed and when I check the developer portal it all looks fine.
Would be good if someone at Facebook could look to see if there is an issue with the API.
Thanks, Fred
I can see other people had the same error on the 9th of August https://developers.facebook.com/community/threads/362904579909018/ For issues such as this, is there any way for developers to report the issue, it would be good to be able to contact Meta support, as if it is a problem with there API then they should look into it, and if there is a problem with our developer account I'd like to try and get it sorted. Does anyone know a page where we can reach out to Meta support or raise a bug.
Hello Fred,
Thank you for reaching out regarding the issue with obtaining a long-lived access token using the Instagram Basic Display API. I understand how critical this functionality is for your application, and I appreciate your diligence in investigating the matter on your end.
The error message you received, {"error":{"message":"Unsupported request - method type: get","type":"IGApiException","code":100,"fbtrace_id":"AC_X8mykJT39_Tw99llE1np"}}
, indicates that the request method being used is not supported. Based on the documentation, the API requires a GET
request for exchanging a short-lived token for a long-lived token, so the error is unexpected.
Here are a few steps you can take to troubleshoot and potentially resolve the issue:
Verify Request Parameters: Double-check that all required parameters (grant_type
, client_secret
, and access_token
) are correctly included in the request URL. Ensure that the client_secret
and SHORT_LIVED_TOKEN
values are accurate and not expired.
Endpoint URL: Confirm that you are using the correct endpoint: https://graph.instagram.com/access_token
. Any deviations or incorrect parameters can lead to errors.
Inspect App Settings: Review the settings of your app in the Facebook Developer portal. Ensure that all configurations, such as the Instagram Basic Display permissions, are correctly set and that the app is in live mode, not in development mode.
API Version: Check the version of the API being called. Although the endpoint URL should default to the latest version, explicitly specifying the version (e.g., v16.0
) might help ensure compatibility.
Rate Limits and Permissions: Verify that your app has not exceeded any API rate limits and that all necessary permissions are granted.
Contact Facebook Support: If the issue persists after these checks, it may be beneficial to contact Facebook support directly through the Developer portal. Provide them with the fbtrace_id
from the error message, as this will help them trace the specific request and provide more precise assistance.
If other developers are experiencing similar issues, it may indicate a temporary disruption in the API service. However, since no changes have been made on your end, this could indeed be related to an internal issue with Facebook’s API. Having Facebook's technical team investigate this further would be advisable.
Thank you for your patience, and I hope this can be resolved quickly.
Best regards,
Hasibul Islam
Hi Hasibul, thanks for your response,
Our request was previously working and nothing has changed, I checked the change log for the instagram api end point and nothing has changed.
From looking through the documentation, It looks like our request is correct
curl -X GET 'https://graph.instagram.com/access_token?grant_type=ig_exchange_token&client_secret=CLIENT_SECRET&access_token=SHORT_LIVED_TOKEN'
The error we get is IGApiException","code":100, that points to some access permission changing on our developer account, we checked the developer dashboard and there are no warnings and we haven't received any emails, it would be good if we could reach out to support at facebook with the fbtrace_id for them to see what the issue is on our developer account.
Can you please help with how we should contact facebook support, when looking through all help documentation on the developer pages the recommendation is to post to this page. We tried the the report bug page https://developers.facebook.com/support/bugs/create/ but this does not allow us to report a bug, instead reporting "This support channel is no longer available" for all channels
Thanks for your assistance, Fred