Book Image

Cross-platform UI Development with Xamarin.Forms

By : Paul Johnson
Book Image

Cross-platform UI Development with Xamarin.Forms

By: Paul Johnson

Overview of this book

Table of Contents (22 chapters)
Cross-platform UI Development with Xamarin.Forms
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
In the Beginning…
Index

Adding social media to your app


Social media sites (such as Facebook and Twitter) are fast becoming the defacto method of communication for people around the world. They both have massive advantages over sending messages with images via MMS or have the text size restrictions that are found in text messaging.

Adding social media in an app is not that difficult and works via a login system that passes the information to either the OAuth1 or OAuth2 authentication system for verification.

The difference between OAuth and OAuth2

OAuth2 gives the mobile developer a lot of advantages over the original version. One of the most important advantages is that OAuth2 doesn't require the app to launch a web page for authentication. The second advantage is that the OAuth2 token is short-lived: the app cannot stay live forever.

Implementing OAuth

We can implement OAuth in a number of ways. The simplest way is to install Xamarin.Auth via NuGet (at the time of writing, the component store only lists this for iOS...