How to log in to Facebook in Xamarin.Forms

前端 未结 7 1081
礼貌的吻别
礼貌的吻别 2020-11-27 11:30

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

7条回答
  •  有刺的猬
    2020-11-27 12:17

    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.

提交回复
热议问题