i have libggdx game compiled ios robovm want share link in facebook.
i'm using new robovm bindings robopods, please see link: https://github.com/robovm/robovm-robopods
i'm trying open facebook share dialog share link doesn't work.
i initiate this:
@override public boolean didfinishlaunching(uiapplication application, uiapplicationlaunchoptions launchoptions) { fbsdkapplicationdelegate.getsharedinstance().didfinishlaunching(application, launchoptions); return true; } @override public boolean openurl(uiapplication application, nsurl url, string sourceapplication, nspropertylist annotation) { return fbsdkapplicationdelegate.getsharedinstance().openurl(application, url, sourceapplication, annotation); } @override public void didbecomeactive(uiapplication application) { fbsdkappevents.activateapp(); } public static void main(string[] argv) { nsautoreleasepool pool = new nsautoreleasepool(); uiapplication.main(argv, null, ioslauncher.class); pool.close(); }
and i'm trying open share dialog as:
nsurl urlshare = new nsurl("http://web.page.com"); fbsdksharelinkcontent content = new fbsdksharelinkcontent(); content.setcontenturl(urlshare); dialog = new fbsdksharedialog(); dialog.setfromviewcontroller(getwindow().getrootviewcontroller()); dialog.setsharecontent(content); dialog.show(); but doesn't work think i'm making wrong. on this?
thanks lot!
(by way robopods authors job)
Comments
Post a Comment