O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Logging in with Facebook

Facebook is the largest social media platform, with well over 1 billion users worldwide. There is a pretty good chance that your user will have a Facebook account, and would want to maybe even log in using their Facebook credentials. Your app can register and link with their account. This will allow you to access data, such as their user information, pictures, and even the ability to share content. Not only has Facebook given us this wonderful framework of React Native, they also gave us a library to help facilitate connecting to the Facebook SDK.

In this recipe, we will cover the first two bits of functionality--logging in and getting basic user information from a Facebook account. We will use the Facebook iOS and Android ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required