Let's build it!

Now that we know more about access tokens, and the various ways to pass them along to the service provider during an API call, let's incorporate this into our application! Currently, we have two versions of our sample application: the client-side example and the server-side example. We will make API calls in both versions of the application, and we will look at utilizing all three methods of passing the access token. Let's begin!

Note

The Facebook Graph API

For our sample application, we will be making API calls to Facebook's Graph API. This is the API that Facebook offers developers who want to integrate with their services. Protected and accessed using OAuth 2.0, this makes for an ideal setting to demonstrate our usage of the ...

Get Mastering OAuth 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.