facebook checkin:如何找到地方ID

tri*_*bal 5 checkin facebook-graph-api

我想做一个服务器端的登机手续.我有坐标,这是lat-long; 我知道这个企业的名称和街道地址.有没有办法获得参数Parameter.with("place",1234)的placeId?

FacebookType publishCheckinResponse = facebookClient.publish("me/checkins",
  FacebookType.class, Parameter.with("message", "I'm here!"),
    Parameter.with("coordinates", coordinates), Parameter.with("place", 1234)));
Run Code Online (Sandbox Code Playgroud)

dee*_*rus 3


如果您知道经纬度坐标,为什么不使用 Graph API 来获取数据 - 例如 - https://graph.facebook.com/search?type=place¢er=37.76,-122.427&distance=1&access_token= ...
这来自此处的 Graph API 文档 - https://developers.facebook.com/docs/reference/api/