Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to access native app for Facebook login?

$
0
0

Hi,

I've implemented the code below for FB login but it pops a browser and asks user to provide email and password.

    void LoginToFacebook ()
    {

        var auth = new OAuth2Authenticator (
            clientId: "XXXXXXXX",
            scope: "email,user_likes",
            authorizeUrl: new Uri ("https://m.facebook.com/dialog/oauth/"),
            redirectUrl: new Uri ("http://www.facebook.com/connect/login_success.html"));

        // If authorization succeeds or is canceled, .Completed will be fired.
        auth.Completed += LoginComplete;

        UIViewController vc = auth.GetUI ();
        PresentViewController (vc, true, null);
    } 

I was expecting to access to native Facebook app instead of browser display.

Is there anyone who knows how I can trigger native FB app and gets authentication?

Thanks in advance.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>