LinkedIn Client Plugin For Xamarin

LinkedIn Plugin Xamarin Forms

Just released the LinkedIn Client Plugin, it makes the process of authenticating a user across Xamarin Forms, Xamarin.Android and Xamarin.iOS with LinkedIn SDK easier.

Set Up

The setup process for the plugin is pretty simple and it’s well documented on the LinkedIn Client Plugin GitHub page. you can complete the Setup process following these steps:

  • Install the nugget package into your PCL project and Client projects.

Use It

You just have to use LinkedInClient.Current

Login

Here is an example of how to launch the login to the LinkedIn Client:

    CrossLinkedInClient.Current.LoginAsync();

This method returns a LinkedInResponse object which contains the basic profile of the user that was authenticated as a string of raw JSON on its Data Property, this response class has the following structure:

Logout

Here is an example of how to log out of the LinkedIn Client:

    CrossLinkedInClient.Current.Logout();

Get Extra Fields from User Profile

You have a public method available that allows you to get extra information you might need from the user profile, just send a list of strings with the fields you require. (List of available fields)

Available Properties

  • ActiveToken (Signed In user Token)
  • TokenExpirationDate (Signed In user Token Expiration Date)

Events

All async methods also trigger events:

Official Google Sign In SDK Documentation:

https://developer.linkedin.com/docs

Full documentation of the project:

https://github.com/CrossGeeks/LinkedInClientPlugin

Xamarin Forms sample project:

https://github.com/CrossGeeks/LinkedInClientPlugin/tree/master/LinkedInClient/LinkedInClientSample

Made with ❤ by Pujols

Author: Pujolsluis

I'm Luis Pujols a Software Engineer originally from the Dominican Republic. I currently work at CrossGeeks as part of an awesome team, developing in Xamarin Forms, and I'm currently working towards my certification on it as well. In my free time, I'm co-organizer of the DotNetDo software community, I also enjoy experimenting with new tech's, mentoring peers and attending or organizing software community events.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.