AppInviteDialog not working in Android Facebook SDK 4.0 -


after long research , trying fix on own, haven't found acceptable working result.

following this documentation i'm trying invite friends app. elements, such share buttons working properly.

the problem "invite app" dialog. after selecting friend, dialog showing red alert icon , "send" button turns "retry" button.

i have tried fix in many ways - configure app in fb dev page (like changing app category: game, travel .etc), adding new permission sharing (but haven't found, inviting required it), using gamesrequests (but app isn't game, it's android + canvas app). have returned again appinvitedialog.

also, have trying use own instance of it, listeners, instead of static class.

invitedialog = new appinvitedialog(this); invitedialog.registercallback(callbackmanager, new facebookcallback<result>() {     @override     public void onsuccess(result result) {         log.i(tag, "mainactivity, invitecallback - success!");     }      @override     public void oncancel() {         log.i(tag, "mainactivity, invitecallback - cancel!");     }      @override     public void onerror(facebookexception error) {         log.e(tag, "mainactivity, invitecallback - error! " + error.getmessage());     } }); 

and calling it, in tutorial:

 if(appinvitedialog.canshow()) {         appinvitecontent content = new appinvitecontent.builder()             .setapplinkurl(appurl)             .setpreviewimageurl(imagepreviewurl)             .build();             //appinvitedialog.show(this, content); //static         invitedialog.show(content); //my instance   } 

but is:

enter image description here

edit:

after creating link app using applinks, , using in appinvitedialog, works fine. it's bit confusing, in documentation not described, kind of link need use: "applinks link" or "app link (link fb app)".

is there error message?

i if don't use applink.

https://developers.facebook.com/quickstarts/1374389166202673/?platform=app-links-host


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -