Facebook AppInviteDialog isn't showing

JoeBonavitaJoeBonavita USMember ✭✭
edited February 2018 in Xamarin.iOS

I'm using the Xamarin.Facebook.iOS to show the AppLinkDialog. It was working for a short time (I think) now all I get is an error that says:
[0:] Invite Failed Error Domain=com.facebook.sdk.core Code=9 "(null)"

I have no idea what this means.

Here's my code

`public class FacebookService : IFacebookService
{
public void InviteFriends(string appLinkUrl, string previewImageUrl)
{
var fromController = UIApplication.SharedApplication.KeyWindow.RootViewController;

        var content = new AppInviteContent
        {
            AppLinkURL = new NSUrl(appLinkUrl),
            PreviewImageURL = new NSUrl(previewImageUrl)
        };

        AppInviteDialog.Show(fromController, content, new MyAppInviteDialogDelegate());
    }
}

public class MyAppInviteDialogDelegate : AppInviteDialogDelegate
{
    public override void DidComplete(AppInviteDialog appInviteDialog, NSDictionary results)
    {
        Debug.WriteLine($"Invite Succeeded {results.DebugDescription}");
    }

    public override void DidFail(AppInviteDialog appInviteDialog, NSError error)
    {
        // This write [0:] Invite Failed Error Domain=com.facebook.sdk.core Code=9 "(null)"
        Debug.WriteLine($"Invite Failed {error.DebugDescription}");
    }
}`
Sign In or Register to comment.