我正在制作一个与instagram相关的android应用程序,以便在尝试首次用户身份验证后可以阅读所有instagram开发人员api,现在一切正常,我正在通过user-id api访问用户数据。现在我想要位置信息,我需要位置信息- id。我不知道去哪里
with user-id:
https://api.instagram.com/v1/users/**userid**/?access_token=13145898924.f59def8.f14ee72f42f14bea9f56d6dc96924483
with location-id:
https://api.instagram.com/v1/locations/location-id?access_token=13145898924.f59def8.f14ee72f42f14bea9f56d6dc96924483
在第一个网址中,我有userid,我在第二个网址中检索信息,我不知道location-id,请帮帮我
1:首先使用facebook graph API搜索位置并获取facebook_places_id。这是一个例子:
https://graph.facebook.com/search?q=&type=place¢er=37.77493,-122.419415&distance=5000&access_token=ACCESS-TOKEN&expires_in=5184000
获取facebook_places_id并使用此instagram位置搜索API获取相应的instagram_location_id
https//:api.instagram.com/v1/locations/search?facebook_places_id=273471170716&access_token=ACCESS-TOKEN
2:获取位置ID,然后制作instagram位置媒体API以获取最新媒体:
https://api.instagram.com/v1/locations/514276/media/recent?access_token=ACCESS-TOKEN
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句