Graph API and OAuth

Certify and Increase Opportunity.
Be
Govt. Certified Facebook Apps Developer

In this example, we will build a barebones AppEngine application that uses Facebook for login. The complete source code for this example can be found in examples/oath directory located at facebook python library code.

You can see the example in action at Facebook OAuth Demo.

We will use OAuth 2.0 directly rather than relying on Facebook’s JavaScript SDK for login. It also accesses the Facebook Graph API directly rather than using the Python SDK. It is designed to illustrate how easy it is to use the Facebook Platform without any third party code.

Using JavaScript is recommended if it is feasible for your application, as it handles some complex authentication states that can only be detected in client-side code.

Before you begin this tutorial, you need to have a facebook application registered and keep its ApplicationID and Application Secret handy with you.

FACEBOOK_APP_ID = "your app id"
FACEBOOK_APP_SECRET = "your app secret"
Share this post
[social_warfare]
Open Graphs
Facebook APIs

Get industry recognized certification – Contact us

keyboard_arrow_up