maltloafdev·10 anni fa·discussWe're seeing the same issue, even when testing with a fresh sandboxed Instagram app. Originally thought it'd be down to an issue with Omniauth/Devise (the Ruby gems we are using).1) send user to authorise at Instagram: GET https://www.instagram.com/oauth/authorize?client_id=XXX&redi... Instagram sends user to your redirect URL with: /?code=YYYY2) post code to Instagram to exchange for access token: curl -F 'client_id=XXXX' \ -F 'client_secret=ZZZ' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=http://localhost:3500' \ -F 'code=YYYY' \ https://api.instagram.com/oauth/access_token3) Instagram responds with: {"error_message": "Matching code was not found or was already used.", "code": 400, "error_type": "OAuthException"}
1) send user to authorise at Instagram: GET https://www.instagram.com/oauth/authorize?client_id=XXX&redi... Instagram sends user to your redirect URL with: /?code=YYYY
2) post code to Instagram to exchange for access token: curl -F 'client_id=XXXX' \ -F 'client_secret=ZZZ' \ -F 'grant_type=authorization_code' \ -F 'redirect_uri=http://localhost:3500' \ -F 'code=YYYY' \ https://api.instagram.com/oauth/access_token
3) Instagram responds with: {"error_message": "Matching code was not found or was already used.", "code": 400, "error_type": "OAuthException"}