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:

enter image description here

please suggest me way send message links facebook friend.

send dialog not supported yet in android, have 3 options:

  • wait facebook implement dialog android.
  • try open dialog in browser (the url in docs) in mobile device.
  • ask xmpp_login permission , add xmpp client (i.e.: asmack) , can implement own "send message" dialog.

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -