Xamarin.Social Facebook login

When logging into Facebook on Android I get a security warning page at the end of the process during a successful login. Is it possible to suppress this page?

Posts

  • ZrednaZredna USMember
    edited April 2014

    I had the same problem and found a solution. I see this question is a year old, but I'll leave this here in case anyone else has the same problem:

    public override bool ShouldOverrideUrlLoading (WebView view, string url) { if (url.StartsWith ("https://www.facebook.com/connect/login_success.html")) { view.Visibility = ViewStates.Invisible; } view.LoadUrl (url); return true; }

    This will make the WebView invisible for the page showing the sercurity warning.
    Should probably add a ProgressDialog or something instead, so the user doesn't see a blank screen for a couple of seconds.

    Edit: You override ShouldOverrideUrlLoading in the webview's client.

Sign In or Register to comment.