Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oldhammade/python-sdk
This SDK is deprecated. It does not support the new cookie format that we rolled out as part of the OAuth Migration. In short, it doesn't work. We currently have no plans to update it. Feel free to clone this repository and modify.
https://github.com/oldhammade/python-sdk
Last synced: about 6 hours ago
JSON representation
This SDK is deprecated. It does not support the new cookie format that we rolled out as part of the OAuth Migration. In short, it doesn't work. We currently have no plans to update it. Feel free to clone this repository and modify.
- Host: GitHub
- URL: https://github.com/oldhammade/python-sdk
- Owner: OldhamMade
- Created: 2012-01-04T10:41:38.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-27T19:18:42.000Z (almost 13 years ago)
- Last Synced: 2023-03-11T16:26:40.676Z (over 1 year ago)
- Language: Python
- Homepage: http://developers.facebook.com/
- Size: 125 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Facebook Python SDK
====
This SDK is deprecated.
This SDK does not support the new cookie format we rolled out as part of the OAuth migration.
We have no plans to add this support. Feel free to clone this repository and modify.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.
Reporting Issues
--------If you have bugs or other issues, file them [here][issues].
[issues]: http://bugs.developers.facebook.net/enter_bug.cgi?product=SDKs