ios - FBSDKAppInviteDialog, restarting the app when leaving -


i'm inviting friends use application through fbsdkappinvitedialog provided facebook sdk.

let invitedialog:fbsdkappinvitedialog = fbsdkappinvitedialog()     if(invitedialog.canshow()){         let content = fbsdkappinvitecontent()         content.applinkurl = nsurl(string: "xxxxxxxx")         content.appinvitepreviewimageurl = nsurl(string: "xxx")         invitedialog.delegate = self         invitedialog.fromviewcontroller = self         invitedialog.content = content         invitedialog.show()     } 

and delegate methods:

extension invitefriendsemailviewcontroller: fbsdkappinvitedialogdelegate{ func appinvitedialog(appinvitedialog: fbsdkappinvitedialog!, didcompletewithresults results: [nsobject : anyobject]!) { } func appinvitedialog(appinvitedialog: fbsdkappinvitedialog!, didfailwitherror error: nserror!) { }} 

everything working except when invitations sent (successfully), i'm redirected @ initial uiviewcontroller of storyboard.. don't know why. if application restarting.

is there me?

thank advance ! ben

actually problem when leaving fbsdkappinvitedialog, you're entering appdelegate function :

 func application(app: uiapplication, openurl url: nsurl, options: [string : anyobject]) -> bool { 

and in function parsing dynamic links , opening other uiviewcontrollers !

hope ^^

bye !


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -