Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malept/python-sdk
Facebook Platform Python SDK
https://github.com/malept/python-sdk
Last synced: 4 days ago
JSON representation
Facebook Platform Python SDK
- Host: GitHub
- URL: https://github.com/malept/python-sdk
- Owner: malept
- Created: 2010-05-25T06:41:59.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-09-18T00:05:22.000Z (about 14 years ago)
- Last Synced: 2024-10-24T16:08:35.335Z (14 days ago)
- Language: Python
- Homepage: http://developers.facebook.com/
- Size: 132 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Facebook Python SDK
====This client library is designed to support the
[Facebook Graph API](http://developers.facebook.com/docs/api) and the official
[Facebook JavaScript SDK](http://github.com/facebook/connect-js), which is
the canonical way to implement Facebook authentication. You can read more
about the Graph API at [http://developers.facebook.com/docs/api](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](http://github.com/facebook/connect-js), 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["oauth_access_token"])
profile = graph.get_object("me")
friends = graph.get_connections("me", "friends")You can see a full AppEngine example application in examples/appengine.