This course extends ASP.NET developers' understanding of how to implement custom social media integration into their ASP.NET web applications utilizing the Facebook SDK for .NET to accessthe Graph API primarily through server side calls. This course is intended to show through a practical ASP.NET MVC web application how to access and update Facebook data utilizing the Graph API. The purpose of this course is demonstrate how an ASP.NET can go beyond simply adding canned client side plugins to implement integration with Facebook.
Introduction Hi, this is Patrick Neborg from Pluralsight. Today, in this course, we'll uncover how to implement custom social media integration into your ASP. NET web application by utilizing Facebook SDK for. NET to access Facebook's Graph API, primarily through server-side calls. This course is intended to show through practical ASP. NET MVC web application examples, how you can access and update Facebook's data utilizing the Graph API. The purpose of this course is to demonstrate how an ASP. NET web application can go beyond simply adding a canned client-side plugin to implement an integration with Facebook. So let's get started with learning about Facebook's Graph API integrations.
Graph API Authentication Hi. My name is Patrick Neborg, and in this module we're going to introduce Facebook's Graph API, and how we can use Microsoft's OWIN Foundation for Facebook's OAuth-based authentication to obtain a valid access token so that we can make our calls to Facebook's Graph API, opening the door to a rich ecosystem of social media data for our users of our web application. This module will set the foundation for subsequent modules which highlight examples of how we can use Facebook's Graph API data within our web application. So let's begin by setting the stage for our solution.
Accessing User Profiles Hi. My name is Patrick Neborg, and in this module we're going to take a closer look at Facebook's Graph API to see how we can retrieve profile information about the currently logged-in user of our application, as well as a list of their taggable friends and Facebook pages. In this module, we'll see how we can implement an Ajax call back to retrieve a PartialView for new Facebook information inside the profile page that we began in our previous module. We'll also create an AutoMapper feature that will allow us to use a custom property attribute on our ViewModels to map them to fields coming back from our Graph API calls. This will greatly simplify our implementations, dehydrate our ViewModels with data coming back from our Facebook Graph API calls. So let's begin adding these new features to our application.
Getting User Feed Hi. My name is Patrick Neborg, and in this module we're going to continue adding features to our integration with Facebook's Graph API by including a call to our currently logged-in user's list of hosts, also known as their feed. In this module, we'll introduce Facebook's Graph API Explorer Tool to help us construct our Graph API calls going forward, and we'll implement handlers for error and limit exceptions that we may receive when interacting with Facebook's Graph API. So let's begin with how to read a user's feed of posts.
Searching and Paging Hi, this is Patrick Neborg, and in this module we're going to continue integrating with Facebook's Graph API by adding a feature to search for people, pages, events, groups, and places that exist publicly on Facebook. And since many of these search results will vary in the number of results returned from the search transaction, we'll include a mechanism to handle paging of our results. We'll be able to continue to use the Page results mechanism that we build here in this module for our future features that will be built in subsequent modules. So let's begin with how to construct a search query with Facebook's Graph API.
Post Data Hi, this is Patrick Neborg, and in this module we're going to change our focus from reading data using Facebook's Graph API to posting data using Facebook's Graph API. This change of focus will be an exciting addition for our solutions Facebook integration capabilities, because it'll allow us to put new messages onto our Facebook wall for our friends or the public users of Facebook to view through their own Facebook tools. So let's not delay, and begin right away with learning how to post new messages to our Facebook wall.
Albums and Photos Hi, this is Patrick Neborg, and in this module we're going to take a look at one of the foundational elements of interacting with Facebook, that is its albums and photos integration capabilities. From the very beginning of Facebook, its functionality has centered around social interactions emanating from the ability to upload and share photographs. In this module, we'll extend the integration features that we built in earlier portions of this course that will demonstrate how you can implement a mechanism to view and create photo albums, along with the ability to view existing photos, upload new photos, and even delete photos from Facebook. So by including Facebook photo integration in to your application, you can really enhance the social interactions for the users of your application.
Real Time Updates Hi, this is Patrick Neborg, and in this module we examine how to set up a Facebook Graph API Subscription that will enable our application to receive a notification from Facebook when a user completes activity within Facebook directly, such as changing their feed by posting a new status message or uploading a photo. And if you're creating a Facebook app that processes payments, then having an application to receive Real Time Updates for payment transactions is a requirement. The communication channel created for a Real Time Update from a user or a Facebook page change is the same channel used by Facebook to send payment Real Time Updates. So being able to receive an activity event notice from Facebook through a Real Time Update Subscription is a versatile capability that can be useful in many different ways within your application. When utilizing Facebook's Real Time Update Subscription, it's important to not only understand how to set up a Facebook Real Time Update Subscription, but to also know what limitations exist for these updates. In this module, we'll cover both how to set up a Facebook Graph Subscription for Real Time Updates, and explain what details are available with a Real Time Update so that you can successfully implement this great feature within your own application.
Page Notification Hi, this is Patrick Neborg, and in this module we'll build on our Facebook Real Time Update integration solution that we implemented in the preceding module of this course to implement a subscription for a Facebook page that will receive a Real Time Update whenever activity occurs on a given Facebook page. Having the ability to notify our users of the Social Manager web application in real time whenever a subscribed Facebook page's feed has new or updated information, is a common use for Facebook's Real Time Updates. Let's take a look at how we can apply this integration for users of our web application.
Payments Hi, this is Patrick Neborg, and in this final module we'll examine how to setup a simple Facebook Canvas Page that can process a payment. We will then integrate this Facebook Payment processing with our application's Real Time Update capability to receive Real Time Updates for payment transactions. Having a Real Time Update callback for payment processing is a requirement in order to configure a Canvas Page that supports processing a payment. The communication channel created for Real Time Updates from a User or Facebook Page change, is the same channel used by Facebook to send payment Real Time Updates. Creating a full-featured Facebook Canvas application, such as a Facebook game or mobile app that has been monetized to accept payments, is not in scope for this course, however, in this module there will be a brief demonstration showing how you can set up your MVC application to receive payment-related details through a Real Time Update from a simple Facebook Canvas Page that we will create. So let's begin to see how we can apply our Facebook Real Time Update features to support Facebook-based payments.