0

是否可以使用设备上的图片进行签到?

我尝试使用“图片”包,但它仅在我指向 URL 时才有效,如果我使用字节数组则无效。如果我使用字节数组,图片就不会显示在墙上。

工作: bundle.putString("picture", "http://www.somewhere.com/picture.jpg");

不工作: bundle.putByteArray("picture", imageByteArray[]);

Bundle bundle = new Bundle();
bundle.putByteArray("picture", imageByteArray[]);  // load from device
bundle.putString("message", "The offee is just meh.");
bundle.putString("place", "my place id");
bundle.putString("coordinates", "my coordinates");
bundle.putString("access_token", mFacebook.getAccessToken());

mAsyncRunner.request("me/checkins", bundle, "POST", new CheckinListener(), null);
4

1 回答 1

0

我不确定,因为我从未真正尝试过使用 Check-In,但你不能使用本地 URL 吗?例如,将字节数组保存在 SDCARD 上的 JPG 文件中,然后提供file://URL。

于 2011-05-24T08:15:51.357 回答