Facepy makes it absurdly easy to interact with Facebook APIs
Project description
Facepy
======
About
-----
Facepy makes it absurdly easy to interact with Facebook APIs.
Usage
-----
::
from facepy import GraphAPI
# Initialize the Graph API with a valid access token (optional,
# but will allow you to do all sorts of fun stuff).
graph = GraphAPI(oauth_access_token)
# Get my latest posts
graph.get('me/posts')
# Post a photo of a parrot
graph.post(
path = 'me/photos',
source = open('parrot.jpg')
)
Facepy can do more than reading your latest posts and posting photographs of parrots, but you'll have to
`read the documentation <http://readthedocs.org/docs/facepy>`_ to find out how.
Installation
------------
::
$ pip install facepy
History
-------
0.6.1
++++++
*Fixed a bug that caused a NameError upon providing a list of strings as a Graph API parameter.
0.6.0
+++++
* Search results may now be paged.
* 'facepy.VERSION' is now 'facepy.__version__'
0.5.1
+++++
* It is now considerably easier to create signed requests programmatically.
0.5.0
+++++
* Facepy now returns the complete API response instead of just its "data" attribute.
Note: This release is backwards-incompatible.
0.4.2
+++++
* Facepy is now compatible with Python 2.4.
* Fixed a bug that caused a KeyError if the user's locale or country is missing from the signed request.
0.4.1
+++++
* Fixed a bug that caused a TypeError upon parsing signed requests in unicode.
0.4.0
+++++
* Added support for parsing and reverse-engineering signed requests.
* Added support for file-like objects in POST and PUT.
0.3.1
+++++
* Fixed a bug that prevented the 'page' argument to GraphAPI#get from working
correctly.
0.3.0
+++++
* GraphAPI#get now has a new argument 'page', which returns a generator
that iterates over each page of results.
0.2.3
+++++
* The GraphAPI class may now be initialized by signed request.
0.2.2
+++++
* Fix a bug that caused non-JSON data (e.g. pictures) to raise a ValueError.
0.2.1
+++++
* Fix a bug that caused a TypeError if the 'path' argument is an integer.
0.2.0
+++++
* Exceptions have been moved.
======
About
-----
Facepy makes it absurdly easy to interact with Facebook APIs.
Usage
-----
::
from facepy import GraphAPI
# Initialize the Graph API with a valid access token (optional,
# but will allow you to do all sorts of fun stuff).
graph = GraphAPI(oauth_access_token)
# Get my latest posts
graph.get('me/posts')
# Post a photo of a parrot
graph.post(
path = 'me/photos',
source = open('parrot.jpg')
)
Facepy can do more than reading your latest posts and posting photographs of parrots, but you'll have to
`read the documentation <http://readthedocs.org/docs/facepy>`_ to find out how.
Installation
------------
::
$ pip install facepy
History
-------
0.6.1
++++++
*Fixed a bug that caused a NameError upon providing a list of strings as a Graph API parameter.
0.6.0
+++++
* Search results may now be paged.
* 'facepy.VERSION' is now 'facepy.__version__'
0.5.1
+++++
* It is now considerably easier to create signed requests programmatically.
0.5.0
+++++
* Facepy now returns the complete API response instead of just its "data" attribute.
Note: This release is backwards-incompatible.
0.4.2
+++++
* Facepy is now compatible with Python 2.4.
* Fixed a bug that caused a KeyError if the user's locale or country is missing from the signed request.
0.4.1
+++++
* Fixed a bug that caused a TypeError upon parsing signed requests in unicode.
0.4.0
+++++
* Added support for parsing and reverse-engineering signed requests.
* Added support for file-like objects in POST and PUT.
0.3.1
+++++
* Fixed a bug that prevented the 'page' argument to GraphAPI#get from working
correctly.
0.3.0
+++++
* GraphAPI#get now has a new argument 'page', which returns a generator
that iterates over each page of results.
0.2.3
+++++
* The GraphAPI class may now be initialized by signed request.
0.2.2
+++++
* Fix a bug that caused non-JSON data (e.g. pictures) to raise a ValueError.
0.2.1
+++++
* Fix a bug that caused a TypeError if the 'path' argument is an integer.
0.2.0
+++++
* Exceptions have been moved.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
facepy-0.6.1.tar.gz
(5.9 kB
view hashes)