Invite Facebook friends thorogh android app -
when invite friends facebook displays toast invitation send not display in friends notification.
i use simple facebook sdk android in app. invite sent, isn`t displayed in friends wall. asked same question here: https://github.com/sromku/android-simple-facebook/issues/13
can tell me why need canvas? can explain canvas , why need make invites work?
i read facebook canvas explanation. written that: "a canvas page quite literally blank canvas within facebook on run app. populate canvas page providing canvas url contains html, javascript , css make app. when user requests canvas page, load canvas url within iframe on page. results in app being displayed within standard facebook chrome."
i don`t want app run page, or have link playstore?
what permissions should ask?
today ask for: "user_friends","publish_actions".
can give me example of invite friends work people don`t have app installed?
public void invite(string message, final oninvitelistener oninvitelistener, string data) { inviteaction inviteaction = new inviteaction(msessionmanager); inviteaction.setmessage(message); inviteaction.setdata(data); inviteaction.setoninvitelistener(oninvitelistener); inviteaction.execute(); } @override protected void executeimpl() { if (sessionmanager.islogin(true)) { bundle params = new bundle(); if (mmessage != null) { params.putstring(param_message, mmessage); } if (mdata != null) { params.putstring(param_data, mdata); } if (mto != null) { params.putstring(param_to, mto); } else if (msuggestions != null) { params.putstring(param_suggestions, textutils.join(",", msuggestions)); } openinvitedialog(sessionmanager.getactivity(), params, moninvitelistener); } else { string reason = errors.geterror(errormsg.login); logger.logerror(inviteaction.class, reason, null); moninvitelistener.onfail(reason); } }
the code taken simple facebook implementation. missing something?
thanks
Comments
Post a Comment