0
我在使用android中的Facebook API在图片中标记朋友时遇到了麻烦。这是我目前所面对的在Android中使用Facebook API在图片中标记朋友
Bundle param;
Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(),R.drawable.picture);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);
byte[] data = stream.toByteArray();
AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook);
InputStream is = null;
param = new Bundle();
param.putString("message", dataMsg);
param.putString("filename", "Invite");
String[] numArr = invitedNum.toArray(new String[invitedNum.size()]);
param.putStringArray("message_tags",numArr);
param.putByteArray("picture", data);
mAsyncRunner.request("me/photos", param, "POST", new SampleUploadListener(), null);
Toast.makeText(context, "Picture posted to Facebok.", Toast.LENGTH_SHORT).show();
这上传的图片,并设置在其上的消息,但没有标记的图片任何人。任何想法都会非常有帮助。