通过 Graph API 发布位置感知帖子

发布于 2024-12-05 05:29:03 字数 326 浏览 0 评论 0原文

据我了解,Post 对象现在是位置感知的。

但是,我似乎找不到有关如何通过 Graph API 发布位置感知帖子的文档。

我的应用程序当前正在发布引用地点的签到 - 但我想迁移到位置感知帖子,因为地点已被弃用。

我知道签到仍然存在,并且它们现在将引用页面而不是地点,但是,除非我弄错了,否则页面 ID 引用仍然是强制性的,并且我需要位置感知的发布/签到有一个可选页面参考..因此我希望转移到具有位置功能的帖子。

如果我的任何假设不正确,请告诉我。

我尝试找到这些问题,但似乎没有一个问题完全符合我需要知道的事情。

非常感谢!

It is my understanding that the Post object is now Location-aware.

However, I can't seem to find documentation on how to publish location-aware Posts via the Graph API.

My app is currently publishing Checkins that reference a Place - but I would like to migrate to location-aware Posts since Places are being deprecated.

I understand that Checkins are sticking around, and that they will now reference a Page instead of a Place, but, unless I'm mistaken, the Page ID reference is still mandatory, and I am in need of my location-aware post/checkin having an optional Page reference.. hence my desire to move to Posts that have location capabilities.

Please let me know if I am incorrect in any of my assumptions..

I tried finding these questions, but none of them seem to hit exactly on the things I needed to know.

Thanks so much!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撩起发的微风 2024-12-12 05:29:03

因此,您现在可以将位置添加到帖子和照片中:
http:// Developers.facebook.com/blog/post/2012/03/07/building-better-stories-with-location-and-friends/

但是我认为这个位置仍然是通过提供地点 ID 或页面 ID 来添加的(实际上我不确定是哪一个。)但我认为您是在问是否可以在没有地点/页面 ID 的情况下添加位置?就我个人而言,我也想这样做,例如使用纬度/经度坐标。

当您通过 Facebook 适当发帖时,它可以自动添加您的大致位置(例如“靠近 [最近的城市/直辖市]”),但是我没有看到通过 FB API 实现相同功能的方法。

So you can now add location to posts and photos:
http://developers.facebook.com/blog/post/2012/03/07/building-better-stories-with-location-and-friends/

However I think this location is still added by giving a place ID or page ID (I'm not sure which, actually.) But I think you're asking if you can add location without a place/page ID? Personally I would like to do this as well, e.g. use lat/lon coords.

When you post through facebook proper, it can automatically add your general location (e.g. "near [nearest city/municipality]") however I don't see a way to achieve the same thing through the FB API.

一场春暖 2024-12-12 05:29:03

目前您无法通过图表 API 将位置附加到帖子。请密切关注 Facebook 开发者博客,看看情况是否发生变化。

You can't currently attach a location to a post via the graph api. Keep an eye on the Facebook developer blog to see if that changes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文