android facebook publish without prompt problem -
android facebook publish without prompt problem -
i've tried find reply searching similar problem, couldn't it. developing android app game can post score facebook straight after login. problem is, posting result show message, didn't show description, name, caption, , picture. here code.
public void oncomplete(bundle values) { seek { byte[] info = null; bitmap bi = bitmapfactory.decoderesource(getresources(),r.drawable.rocket); bytearrayoutputstream baos = new bytearrayoutputstream(); bi.compress(bitmap.compressformat.png, 100, baos); info = baos.tobytearray(); bundle params = new bundle(); params.putstring("message", var.getpostcontent() + " achieved"); params.putstring("name", "this appear beside picture"); params.putstring("caption", "this appear under title"); params.putstring("description", " lal ala !!!"); params.putbytearray("picture", data); mfacebook.request("me/feed", params, "post"); } grab (exception e) {} }
and permission
private string[] perms = new string[] { "user_events","publish_stream" };
really appreciate help ☺
the image param should string, representing finish url.
you're using right params caption,name , description. should show on wall.
can remove image param, , replace string, representing total url.
android facebook
Comments
Post a Comment