[英]Instagram API - get all users media
Can someone tell me how I can get all media of an user with PHP? 有人可以告诉我如何使用PHP获得用户的所有媒体吗? I use
我用
https://api.instagram.com/v1/users/self/media/recent/?access_token=
but there is no return of next_url in pagination. 但是分页中没有next_url的返回。 And anyway, is there any way to do it easier than with next_url?
而且,有没有什么方法比next_url更容易?
Thank you very much for your help :) 非常感谢您的帮助 :)
I solved it. 我解决了 Instagram API does not allow more than 20 Posts in Sandmode mode.
Instagram API在Sandmode模式下最多允许发布20条帖子。
According to the documentation at https://www.instagram.com/developer/endpoints/users/#get_users_media_recent you can add a count
-param to specify the amount of media you want to fetch. 根据https://www.instagram.com/developer/endpoints/users/#get_users_media_recent上的文档,您可以添加
count
-param以指定要获取的媒体数量。
So https://api.instagram.com/v1/users/self/media/recent/?access_token=XXXX&count=9999999
should do the trick. 因此,
https://api.instagram.com/v1/users/self/media/recent/?access_token=XXXX&count=9999999
应该可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.