我已经浏览了Instagram API很长一段时间了,无法找到一种方法将最后3张instagram图片发布在一个特定的位置。
例如,游客搜索"Patrick's Pub“。该网站将他重定向到酒吧的网页在我的网站,在那里,我将能够显示最后3 instagram图片张贴在帕特里克酒吧。
有什么方法显示这些图像吗?我想过这个网址:
https://api.instagram.com/v1/locations/search?lat=*LAT*&lng=*LNG*&access_token=*THETOKEN*但这有两个问题: 1.我找不到一种方法将LAT和LNG坐标转换成一个地方(比如Patrick的酒吧) 2。如果这个URL需要一个访问令牌,这意味着用户需要登录他的instagram帐户,它将不适合于网站,只用于查看place instagram照片。
任何帮助都将不胜感激。
发布于 2015-04-22 16:29:52
这是一个三步走的办法:
facebook graph API搜索某个位置的实际位置并获取facebook_places_id。https://graph.facebook.com/search?q={NAME}&type=place¢er={LAT,LNG}&access_token={ACCESS_TOKEN}&expires_in=5184000
Instagram location search API调用facebook_places_id来获取instagram_location_id。https://api.instagram.com/v1/locations/search?facebook_places_id={FACEBOOK_PLACES_ID}&access_token={ACCESS-TOKEN}
Instagram location media APIhttps://api.instagram.com/v1/locations/{location-id}/media/recent?access_token={ACCESS-TOKEN}
下面是这个搜索的一个实现:http://www.gramfeed.com/instagram/places
https://stackoverflow.com/questions/29775037
复制相似问题