Android Invite friends to App (open play store link) using Facebook Sdk 3.1 -


i trying send invitation facebook friends using facebook sdk 3.1. here code:

bundle params = new bundle(); params.putstring("message", "come join me in guesswhat!"); params.putstring("to", textutils.join(",", invitabletokens));  webdialog dialog = new webdialog.builder(context, session.getactivesession(), action, params).setoncompletelistener(             new webdialog.oncompletelistener() {                  @override                 public void oncomplete(bundle values, facebookexception error) {                      if(error!=null)                         log.i(getclass().getsimplename(), "invitation error :" + error.getmessage());                     else                         utils.showtoast_msg(context, getstring(r.string.invite_sent));                  }             }).build();      // hide notification bar , resize full screen     window dialog_window = dialog.getwindow();     dialog_window.setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen);      // show dialog     dialog.show(); 

using webdialog opens dialog add friends send invites. invitation sent successfully. not received receiver. if add paltform "facebook canvas" sends invitation , friend receives invitation on clicking invite redirects facebook canvas (nothing there show). want send app invites facebook friends (without facebook canvas) , when click on invite should redirect google play store open app. suggestions?

better shift 4.0 fb api version because. send app invites must use version 4.0 or later of facebook android sdk. read more getting started facebook sdk android setup environment.

for more details check facebook developer portal.


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -