Chapter 7. Use Your Access Token
Up until this point in the book, we have spent all of our energy trying to obtain an access token. In the previous two chapters, we were able to obtain access tokens using both the implicit grant flow for our client-side example, and the authorization code grant flow for our server-side example.
In this chapter, we will finally use the access token we've been working so hard to obtain. We will do so by requesting access to protected resources on the service provider. In particular, we will use this access token to make API calls to Facebook's Graph API to get data that we can use to build our infographic.
Refresher on access tokens
Recall from the A closer look at access tokens section in Chapter 3, Four Easy Steps ...
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.