【问题标题】:Post status update with location发布带有位置的状态更新
【发布时间】:2012-06-07 22:45:45
【问题描述】:

当您向 Facebook 发布定期状态更新时,它会跟踪您的当前位置并在时间旁边提供(附近)城市。即:5 月 24 日在 纽约市,纽约附近。请注意,这不是签到。

我正在尝试做同样的事情,而不是搜索页面(地点)ID 和签入。 我已经尝试发布coordinates with latitute and longitute,但它没有显示附近的城市。

https://graph.facebook.com/me/feed

message=test
coordinates={"latitude": 37.4163458217, "longitude": -122.15198690595}

【问题讨论】:

    标签: facebook-graph-api location coordinates latitude-longitude


    【解决方案1】:

    请检查此网址 https://developers.facebook.com/docs/reference/api/status/

    您必须将坐标作为名为 place 的对象传递,这将包含有关地点的详细信息,有关地点对象的更多详细信息...

    object containing id and name of Page associated with this location, and a location field containing geographic information such as latitude, longitude, country, and other fields (fields will vary based on geography and availability of information)
    

    【讨论】:

    • 感谢您的回复拉基布尔!但我没有让它工作,我已经尝试过这样(作为 PHP 数组):array ( "message" => "My message", "place" => array ( "location" => array ( "latitude" => 40.714353, "longitude" => -74.005973, "country" => "US" ) ) ); 它给出了一个错误,但没有什么特别的。文档在这部分确实失败了,没有例子,什么都没有......
    【解决方案2】:


    我意识到这是一个老问题,但为了确认,通过应用发布只能让您使用地点 ID 标记地点。
    请查看这些相关帖子 -
    https://developers.facebook.com/blog/post/2012/03/07/building-better-stories-with-location-and-friends/
    https://developers.facebook.com/docs/opengraph/actions/#taggingplaces

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多