OAuthException error Invalid app_secret
Hi,
we have a web application to display latest Instagram posts? The app was running for years with Basic Display API. Due to suppression of this API we migrate to use the regular Graph API.
1/ From the website we call authentication via: https://www.instagram.com/oauth/authorize?client_id=OURCLIENTID&scope=instagram_business_basic&redirect_uri=OURREDIRECTURL&response_type=code&state=OURSTATE&hl=LANGUAGECODE 2/ The Instagram dialog opens to request authorization 3/ Click on allow 4/ In our redirect url we call: https://api.instagram.com/oauth/access_token with POST data 'client_id' =>OURAPPID 'client_secret' => OURAPPSECRET 'grant_type' => 'authorization_code' 'redirect_uri' =>OURREDIRECTURL 'code' => RECIVIEDCODE
We got response with following error: - error_type:OAuthException - code:400 - error_subcode: - error_message: Invalid app_secret
We verified, every parameters are correct specially the APPSECRET!
When we go to the Instagram account, the App website id present and active with all access needed opened!
Any help appreciate, we don't understand this issue. Noting found on the web or Meta help about "Invalid app_secret"
Regards John