In the previous section, we added both of our Xamarin.Auth
and Facebook SDK .NET Assembly packages to our TrackMyWalks
Portable Class Library. This will essentially be used by each of our ViewModels
along with the Views (pages).
In this section, we will begin by creating our FacebookApiUser
data model, which will be used to store our Facebook login information from when we create our backend service calls, and then the FacebookCredentials.cs
and FBSignInRenderer.cs
files will communicate and interact with our Facebook TrackMyWalks App ID to retrieve Facebook related information, as well as allowing the user to post walk information to their Facebook wall.
Let's now start to implement the code required for our FacebookApiUser
class model by performing the following steps:
Create an empty class within the
Models
folder by choosing Add | New File.... If you can't remember how to do this, you can refer to the section entitled Creating the...