Share link to facebook from Android Application with out image -
am posting image , url facebook wall using folowing code
private void posttowall() { if (facebook != null) { if (facebook.issessionvalid()) { bundle b = new bundle(); b.putstring("picture", "imageurl"); b.putstring("caption", "testing"); b.putstring("description", "testing in android"); b.putstring("name", "naveen"); b.putstring("link", "http://funmango.com/"); try { string strret = ""; strret = facebook.request("/me/feed", b, "post"); jsonobject json; try { json = util.parsejson(strret); if (!json.isnull("id")) { log.i("facebook", "image link submitted."); } else { log.e("facebook", "error: " + strret); } } catch (facebookerror e) { log.e("facebook", "error: " + e.getmessage()); } } catch (exception e) { log.e("facebook", "error: " + e.getmessage()); } } } } but requirement if there no image want post text , link wall ,
thanks in advance
Comments
Post a Comment