Instagram API -Get the userId

前端 未结 6 1495

We had integrated instagram api (with {userId}/media/recent) to get media feeds based on userId. It was working fine until June 1 2016 . Now on how do I get userId for new i

6条回答
  •  自闭症患者
    2020-12-16 07:46

    When you generate the access token.. there will be id in the json response

    {"access_token": "", "user": {"username": "abcdef", "bio": "", "website": "", "profile_picture":", "full_name": "ABCEDEFE", "id": "000000000"}}

    We can get userid by using this link. https://api.instagram.com/v1/users/self/?access_token=ACCESS-TOKEN

提交回复
热议问题