1

如何在将照片从 android 上传到 facebook 时发送地点参数。

Bundle params = new Bundle();

params.putByteArray("photo", byteArray);

params.putString("caption", "FbAPIs Sample App photo upload");

//params.putString("place", "Banglore");

//params.putString("location", "banglore");

Utility.mAsyncRunner.request("me/photos", params, "POST",
    new PhotoUploadListener(), null);
4

2 回答 2

1

将地点添加到参数中,就像您添加标题一样。

params.putString("place","someLocation");
于 2012-11-20T13:46:15.690 回答
0

You're almost there. Instead of using "Bangalore" for example, pass in the Facebook place ID.

Ex:

params.putString("place", "106377336067638");

For reference, see: https://developers.facebook.com/docs/reference/api/user/#photos

于 2012-11-21T19:51:44.207 回答