facepy使得与facebook的图形api交互变得非常容易
facepy-pozytywnie的Python项目详细描述
用法
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', 'rb') )
Facepy可以做的不仅仅是阅读你最新的帖子和张贴鹦鹉的照片,但是你必须 阅读文档 了解如何操作。