使用 Facebook 中的坐标发布与地点相关的消息
我有以下坐标: 纬度=59.427277 longitude=24.750971
我想在用户墙上发布包含位置的帖子,但我只有坐标。
Facebook 文档在“post”表中有一个位置参数,但我可以'当我只有坐标时,不知道如何发布带有地点的帖子。它说“包含与此位置关联的页面的 id 和名称的对象”,但我找不到将我的坐标与位置关联起来的方法。我无法从带有坐标的页表中进行搜索,因为这些字段不可索引。
I have the following coordinates:
latitude=59.427277
longitude=24.750971
I'd like to make a post to the user wall with location included, but I only have the coordinates.
Facebook documentation has a place parameter in "post" table, but i can't figure out how can i make a post with place when i only have the coordinates. It says that "object containing id and name of Page associated with this location" but i found no a way to associate my coordinates with a location. I cannot search from page table with coordinates because those fields ain't indexable.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用搜索图路径查找已在 Facebook 上注册的地点,如下所示
https://graph.facebook.com/search?q=searchterm&type=place¢er=34,-117& distance=10000&access_token=APP_ACCESS_TOKEN
这将返回一个 JSON 对象,其中包含为您的搜索词找到的地点(包括地点的 ID)。
You need to lookup a place that is already registered on Facebook by using the search Graph path like this
https://graph.facebook.com/search?q=searchterm&type=place¢er=34,-117&distance=10000&access_token=APP_ACCESS_TOKEN
This will return a JSON object with places found for your search terms (including the ID of the place).