Instagram API - User photos

后端 未结 5 1487
迷失自我
迷失自我 2021-01-12 17:59

does anyone know can I get photos from instagram user without using access token. It doesn\'t make sense that I see photos on http://instagram.com/{user} but can not get t

5条回答
  •  青春惊慌失措
    2021-01-12 18:42

    You don't need to use the access_token at all. Just register your application with Instagram, get the client_id and use that to query.

    To quote the documentation:

    Note that in many situations, you may not need to authenticate users at all. For instance, you may request popular photos without authenticating (i.e. you do not need to provide an access_token; just use your client ID with your request). We only require authentication in cases where your application is making requests on behalf of a user (commenting, liking, browsing a user’s feed, etc.).

提交回复
热议问题