Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Facebook makes implementing OAuth 2.0 easy (and easier with libraries and SDKs), so after you know the URLs to call, it's just a matter of writing the code on your server to handle the requests.
You can get all the URLs you need from the Developer documentation at developers.facebook.com.
Here's how a sample Facebook OAuth 2.0 flow works:
Go through the application setup process (see Chapter 7). After that is done and you've set up your Web site URL and domain, you are given an application ID and secret. Note that information, because you need to copy and paste it later.
Pass to it your application ID in a parameter called client_id and a callback URL that you want to process and get the access token when the user is done logging in. This URL should be passed to a redirect_uri parameter. So, your URL should look something like https://graph.facebook.com/oauth/authorize?client_id=...&redirect_uri=... (passing in the appropriate values as specified).