CrossGeeks / FacebookClientPlugin

Facebook Client Plugin for Xamarin iOS and Android
MIT License
106 stars 32 forks source link

More than one url type #87

Open ozersenol opened 3 years ago

ozersenol commented 3 years ago

What if there ismore than one on this:

    public override bool OpenUrl(UIApplication app, NSUrl url, NSDictionary options)
    {
        if (Xamarin.Forms.DependencyService.Get<IAppleSignInService>().Callback(url.AbsoluteString))
            return true;

        return base.OpenUrl(app, url, options);
    }

public override bool OpenUrl ( UIApplication application, NSUrl url, string sourceApplication, NSObject annotation ) {

if DEBUG

        System.Text.StringBuilder sb = new System.Text.StringBuilder();
        sb.AppendLine("OpenURL Called");
        sb.Append("     url         = ").AppendLine(url.AbsoluteUrl.ToString());
        sb.Append("     application = ").AppendLine(sourceApplication);
        sb.Append("     annotation  = ").AppendLine(annotation?.ToString());
        System.Diagnostics.Debug.WriteLine(sb.ToString());

endif

       return true;
    }

What should I do to implement also for facebook?