Migrating to Instagram API with Instagram Login
I have migrated our App to the IG API with IG Login using instagram_business_basic permissions due to the Basic Display API going out on Dec 4th, 2024. This new API works for only a handful of our clients. When trying to get a long-live token for a portion of our clients' IG accounts the API call returns the following error: "Unsupported request - method type: get". The endpoint we are using to get a long-live token is: GET https://graph.instagram.com/access_token ?grant_type=ig_exchange_token &client_secret=YOUR_APP_SECRET &access_token=SHORT_LIVED_ACCESS_TOKEN
The original API call is: GET https://www.instagram.com/oauth/authorize ?client_id=APP_ID &redirect_uri=REDIRECT_URI &scope=instagram_business_basic &response_type=code
It is very unclear to me why it works for some clients but not for others
Facing the same issue
How did you obtain shot access token, we follow the documentation with:
$postFields = array(
'client_id' => IG-APPID,
'client_secret' => IG-SECRET,
'grant_type' => 'authorization_code',
'redirect_uri' => OURURI,
'code' => $_GET['code']
);
$options=array(
CURLOPT_URL => "https://graph.instagram.com/oauth/access_token",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HEADER => false,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $postFields
);
$ch = curl_init();
curl_setopt_array($ch,$options);
$res = $access_token = curl_exec($ch);
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
We received statuts http code 400 and response : Sorry, this content isn't available right now. If you can help I apprecaite ;-)
same here, up!
same issue
same issue
Same issue here