facebook-python-sdk

A client library designed to support the Facebook Graph API and the official Facebook JavaScript SDK
Download

facebook-python-sdk Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Facebook, Inc.
  • Publisher web site:
  • http://www.facebook.com/

facebook-python-sdk Tags


facebook-python-sdk Description

A client library designed to support the Facebook Graph API and the official Facebook JavaScript SDK facebook-python-sdk is a Python library designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authentication. You can read more about the Graph API at http://developers.facebook.com/docs/api.Basic usage:graph = facebook.GraphAPI(oauth_access_token)profile = graph.get_object("me")friends = graph.get_connections("me", "friends")graph.put_object("me", "feed", message="I am writing on my wall!")If you are using the module within a web application with the JavaScript SDK, you can also use the module to use Facebook for login, parsing the cookie set by the JavaScript SDK for logged in users. For example, in Google AppEngine, you could get the profile of the logged in user with:user = facebook.get_user_from_cookie(self.request.cookies, key, secret)if user: graph = facebook.GraphAPI(user) profile = graph.get_object("me") friends = graph.get_connections("me", "friends")You can see a full AppEngine example application in examples/appengine. Requirements: · Python


facebook-python-sdk Related Software