【发布时间】:2011-08-31 17:25:51
【问题描述】:
是否可以通过设备上的图片进行签到?
我尝试使用“图片”包,但它仅在我指向 URL 时才有效,如果我使用字节数组则无效。如果我使用字节数组,图片就不会显示在墙上。
工作: bundle.putString("图片", "http://www.somewhere.com/picture.jpg");
不工作: bundle.putByteArray("图片", 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);
【问题讨论】:
标签: android facebook facebook-graph-api image checkin