Instagram oauth api gives { “code”: 400, “error_type”: “OAuthException”, “error_message”: “No matching code found.” }

前端 未结 7 1527
孤独总比滥情好
孤独总比滥情好 2020-12-25 11:52

I am working on an application that integrates with Instagram API to access the user information. I successfully fetch the Access Token using the authorize url but unable to

7条回答
  •  旧时难觅i
    2020-12-25 12:20

    I got same error. It seems that instagram's spam system disable user's access to any non-official application. Just change user's password. In my case it was help. Also try create another application.

    UPD

    From my answer to another question

    It looks like users get more than one code, and you see first code, but need second. Try relogin users, if you gets error. User will not see instagram page with confirm button, just redirections.

    Possible algorithm of error:

    1. User click auth link.
    2. Get first code.
    3. User click auth link (twice, redirection problem, public auth system, etc.)
    4. Get another code (even on the same client_id, redirect_uri).
    5. You get first code.
    6. But first code already doesn't exists.
    

提交回复
热议问题