android - how to get facebook game request url? -
we using facebook unity sdk game requests on android.
- when clicks game request in facebook notifications
- they switch game or app store page (if it's not installed)
- when game runs, call fb.getapplink(deeplinkcallback)
- however, receive empty url.
anyone knows how achieve ?
thanks.
full code:
void afterinit(){ fb.getapplink(deeplinkcallback); } void deeplinkcallback(iapplinkresult result) { debug.log("app url = "+result.url); }
update: sorry posting same code. have question you.
is app life in store , linked facebook developer profile correctly? if in test mode can fail.
however believe id need send in-app invites app id facebook developer profile. (check image)
the example code in-app invites this
fb.mobile.appinvite( new uri("https: // fb. me/810530068992919"), //the id new uri("http://i.imgur.com/zkylb.jpg"), // optional image appinvitecallback //callback function );
hope can solve issues.
thanks.
Comments
Post a Comment