Where do I find the Instagram media ID of a image

后端 未结 15 1379

I\'m am looking for the MediaID of an Instagram image which has been uploaded. It should look like

1234567894561231236_33215652

15条回答
  •  感情败类
    2020-12-22 20:03

    Instagram deprecated their legacy APIs in support for Basic Display API during the late 2019

    In Basic Display API you are supposed to use the following API endpoint to get the media id. You will need to supply a valid access token.

    https://graph.instagram.com/me/media?fields=id,caption&access_token={access-token}
    

    You can read here on how to configure test account and generate access token on Facebook developer portal.

    Here is another article which also describes about how to get access token.

提交回复
热议问题