FaceBook Service Into UWP App Using UWPF Community Toolkit

Introduction

This article is divided into three sections, the first two sections explain about the installation of the Facebook application and install the UWP service tool kit and final part explains integration into the application,

  1. Install the UWP toolkit
  2. Create Facebook Service
  3. Integrate Facebook into main application

Install the UWP Toolkit

UWP Community Toolkit is a collection of helper functions, custom controls, and app services. It simplifies and demonstrates common developer tasks building UWP apps.

More info available here.

For our application to implement face book integration ,there is no need to write the code from scratch, the UWP toolkit helper class is available, we just add the helper reference into our application.

Adding helper reference into our project.

Steps

  1. Create a new project (ex: FacebookService)
  2. right click -> Manage NuGet Packages
  3. Search “Microsoft.Toolkit. Uwp”
  4. Select the “Microsoft.Toolkit. Uwp. Services” & Install

project

UWP Tool kit has installed into our application.

Create Facebook Service

We have to create a Facebook Service App to interact with our application into Facebook, first we will see how to create Facebook Service

Note - Create Facebook Service -- first we need our application Windows store App Id, let us create a Windows store App Id

  1. Create a new Universal Windows Program project (ex: Facebook Service).
  2. Call FacebookService.Instance. WindowsStoreId, it generates the Windows Store Id.

Steps

  1. Goto the site & Register,

    Register

  2. Create a App Id,

    http://www.c-sharpcorner.com/article/facebook-service-into-uwp-app-using-uwp-community-toolkit/

  3. Goto Settings -> Basic -> Add Platform -> Select the Windows App,

    http://www.c-sharpcorner.com/article/facebook-service-into-uwp-app-using-uwp-community-toolkit/

  4. Enter the Windows Store SID which we have created in the Note section,

    http://www.c-sharpcorner.com/article/facebook-service-into-uwp-app-using-uwp-community-toolkit/

  5. Add product & Login, select below option has enable or not, if not please enable it,

    http://www.c-sharpcorner.com/article/facebook-service-into-uwp-app-using-uwp-community-toolkit/