简体   繁体   English

如何使用Facebook Graph API获取用户的签到照片

[英]How to get user's check-in photos with Facebook Graph API

I'm using Facebook Graph API v1.0. 我正在使用Facebook Graph API v1.0。 I want to get user's check-in photos. 我想获取用户的签到照片。

I ask an user for user_photos and user_checkins permissions, and I use the graph path which is shown below: 我要求用户提供user_photos和user_checkins权限,并且使用如下所示的图形路径:

/me/locations /我/位置

This graph path returns a list which contains the user's check-in data, and the data on this list all have "place" and "type" fields. 该图形路径返回一个包含用户签入数据的列表,并且该列表上的数据都具有“位置”和“类型”字段。 While user posts an article on the Facebook and tags position, the article id will be shown on the locations-list and be marked by type "status". 当用户在Facebook上发布文章并标记位置时,文章ID将显示在locations-list上,并以“ status”类型标记。 If user posts one photo or some(more than one) photos and tags its(their) position, the photo(s) will be shown on the locations-list and be marked by type "photo". 如果用户张贴一张照片或一些(多于一张)照片并标记其位置,则这些照片将显示在位置列表中,并以“照片”类型标记。

But I encountered a problem. 但是我遇到了一个问题。 When user posts some(more than one) photos and tags position at once on Timeline, these photos will be only shown on the locations-list for a period of time(maybe several days). 当用户在时间轴上一次发布一些(多于一张)照片和标签位置时,这些照片将仅在一段时间(也许几天)内显示在位置列表中。 Then, these photos will not be found on the locations-list anymore, but the single-posted photos and articles are still on there even though they have been posted since many years ago. 然后,这些照片将不再在locations-list中找到,但是单发布的照片​​和文章仍保留在那里,即使它们已经发布多年了。

Does any one know why? 有谁知道为什么吗?

Im also having similar issues. 林也有类似的问题。 Facebook app is live and custom story added to dashboard and has been approved by FB. Facebook应用程序是实时的,自定义故事已添加到仪表板中,并已获得FB的批准。 My iOS app doesn't implement FB login as it is not required if using the Share Dialog according to the doc. 我的iOS应用未实现FB登录,因为如果根据文档使用“共享对话框”,则不需要此登录。 On my Facebook mobile app, the app generated story appears in both my timeline as well as news feed (no issues there) BUT in the desktop version, it doesn't appear in both - only appears in the activity log where the post setting is set to 'Allowed on timeline'. 在我的Facebook移动应用程序上,该应用程序生成的故事同时出现在我的时间轴和新闻提要中(但没有问题),但在桌面版本中却没有出现在这两者中-仅出现在帖子设置为的活动日志中设置为“允许在时间轴上”。 Any help is appreciated. 任何帮助表示赞赏。 Thanks! 谢谢!

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

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