Android facebook send a message -
i have send message facebook friend via android app.i have done functions , tried code send message facebook friend.but showing error dialog not available device.
here code send message facebook friend:
facebook facebook = new facebook(app_id); bundle params = new bundle(); params.putstring("to", constant.facebookidbuffer.tostring()); params.putstring("name", "goal machine");//title params.putstring("link", constant.shortappurlforandroid+"\n"+constant.shortappurlforiphone);//message facebook.dialog(_activity, "send", params, new dialoglistener() {//apprequests @override public void oncomplete(bundle values) { constant.facebookidbuffer=null; //posttowall("@"+constant.facebookidbuffer.tostring()+sendinvite); } @override public void onfacebookerror(facebookerror error) { constant.showalertdialog("error", "can't send ally request!", _activity.getparent(), false); constant.facebookidbuffer=null; } @override public void onerror(dialogerror e) { constant.showalertdialog("error", "can't send ally request!", _activity.getparent(), false); constant.facebookidbuffer=null; }
here screen short showing error:
please suggest me way send message links facebook friend.
send dialog
not supported yet in android, have 3 options:
Comments
Post a Comment