简体   繁体   English

使用Instagram API,我可以显示从特定位置获取所有帖子吗?

[英]using the Instagram API, can i display get all posts from a specific location?

Hi Instagram Developers, I'd like to get a feed of all instagram posts of our location (guests who post images from their stay with us). 嗨,Instagram开发人员,我想获取我们位置所有instagram帖子的提要(发布与我们一起住宿的图片的客人)。 Unfortunately, with the API I can't get any other posts than my own users, which is clearly not what i want... is there any way to do that? 不幸的是,使用API​​只能获得我自己的用户以外的任何其他帖子,这显然不是我想要的...可以采取任何措施吗?

integration using php 使用PHP集成

Thanks for any help flo 感谢您的帮助

You can query the Instagram API using the location ID of your business, like this: https://api.instagram.com/v1/locations/{location-id}/media/recent?access_token=ACCESS-TOKEN 您可以使用企业的位置ID查询Instagram API,例如: https://api.instagram.com/v1/locations/{location-id}/media/recent?access_token=ACCESS-TOKEN ://api.instagram.com/v1/locations/{location-id}/media/recent?access_token https://api.instagram.com/v1/locations/{location-id}/media/recent?access_token=ACCESS-TOKEN

This will return the most recent posts for your location. 这将返回您所在位置的最新帖子。

If you don't know your location ID, it's the number at the end of the URL for your location page on Instagram eg https://www.instagram.com/explore/locations/222206243/ . 如果您不知道自己的位置ID,则为Instagram上您的位置页面URL末尾的数字,例如https://www.instagram.com/explore/locations/222206243/

See their documentation for more info on what is included: https://www.instagram.com/developer/endpoints/locations/ 请参阅他们的文档以获取有关包含的内容的更多信息: https : //www.instagram.com/developer/endpoints/locations/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM