Impossible to get an access_token for Instagram Basic Display API

前端 未结 7 2296
谎友^
谎友^ 2021-01-04 12:32

I\'m trying to get an access_token from Instagram to use their Basic Display API for a new app (simply display tweets on a webpage).

I followed these steps: https://

7条回答
  •  情书的邮戳
    2021-01-04 13:02

    I tried using the command-line tool as per the original docs(https://developers.facebook.com/docs/instagram-basic-display-api/getting-started), but no luck...

    Here's what to do in 3 easy steps:

    1. First thing: Install Postman https://www.postman.com/downloads/
    2. Make a POST request to https://api.instagram.com/oauth/access_token with the parameters in the body, NOT the params. Make sure that the x-www-form-urlencoded option is enable.
    3. You should now get a status of 200 OK and a response with both access_token and user_id.
    {
        "access_token": "IGQVJYUXlDN...",
        "user_id": 17841400...
    }
    

    Happy days!!

    See the screenshot for the correct settings:

提交回复
热议问题