【问题标题】:How to put location information into photo and uploading into facebook using android facebook SDK如何使用 android facebook SDK 将位置信息放入照片并上传到 facebook
【发布时间】:2023-03-19 11:23:01
【问题描述】:

我正在寻找仅发布经纬度的照片。我都试过了 - bundle.putString("位置","\"纬度\":"+纬度+",\"经度\":"+经度); - bundle.putString("坐标","\"纬度\":"+纬度+",\"经度\":"+经度);

都返回成功,但facebook的照片中没有位置信息显示。

【问题讨论】:

    标签: android facebook graph photo


    【解决方案1】:

    检查此片段以添加位置:

                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) {
    
                }
    

    【讨论】:

    • 谢谢..但还是没有成功..帖子返回成功,没有经纬度信息。
    猜你喜欢
    • 2023-03-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-11
    相关资源
    最近更新 更多