• 1
Votes
name
name Punditsdkoslkdosdkoskdo

How to login to facebook in Xamarin.Forms

I want to make a Xamarin.Forms project, targeting iOs, Android and Windows Phone.

My app needs to authenticate users, using Facebook.

Should I implement login for each platform independently, or use a manual flow?https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.0

I prefer to have a single implementation of the login flow, and use it on all platforms.

How can I get a single implementaion of the facebook login flow?

You could consume either Xamarin.Social or Xamarin.Auth for that. It allows using the same api whatever the platform is.

As of now, those libs aren't PCL yet, but you still can consume them from a Shared Assets Project, or abstract the API you need in an interface and inject in with DependencyService or any other DI container.

  • 0
Reply Report