Ich lade Freunde ein, die Anwendung über den FBSDKAppInviteDialog des Facebook SDK zu verwenden.FBSDKAppInviteDialog, Neustart der App beim Verlassen
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()
}
Und die Delegatmethoden:
extension InviteFriendsEmailViewController: FBSDKAppInviteDialogDelegate{
func appInviteDialog(appInviteDialog: FBSDKAppInviteDialog!, didCompleteWithResults results: [NSObject : AnyObject]!) {
}
func appInviteDialog(appInviteDialog: FBSDKAppInviteDialog!, didFailWithError error: NSError!) {
}}
Alles funktioniert einwandfrei, außer dass, wenn die Einladungen werden (erfolgreich) geschickt, ich bin in dem Anfang UIViewController meine Storyboard umgeleitet .. I don‘ Ich weiß warum. Wie wenn die Anwendung neu gestartet wird.
Gibt es jemanden, der mir helfen könnte?
Vielen Dank im Voraus! Ben