【发布时间】:2023-03-19 11:23:01
【问题描述】:
我正在寻找仅发布经纬度的照片。我都试过了 - bundle.putString("位置","\"纬度\":"+纬度+",\"经度\":"+经度); - bundle.putString("坐标","\"纬度\":"+纬度+",\"经度\":"+经度);
都返回成功,但facebook的照片中没有位置信息显示。
【问题讨论】:
标签: android facebook graph photo
我正在寻找仅发布经纬度的照片。我都试过了 - bundle.putString("位置","\"纬度\":"+纬度+",\"经度\":"+经度); - bundle.putString("坐标","\"纬度\":"+纬度+",\"经度\":"+经度);
都返回成功,但facebook的照片中没有位置信息显示。
【问题讨论】:
标签: android facebook graph photo
检查此片段以添加位置:
try {
Bundle params = new Bundle();
JSONObject coordinates = new JSONObject();
coordinates.put("latitude", "Your Latitude");
coordinates.put("longitude", "Your Longitude");
params.putString("coordinates", coordinates.toString());
params.putString("Message", "Bla Bla Bla");
// Do your stuffs for Post
} catch (Exception e) {
}
【讨论】: