如何使用Python Facebook Graph API [英] How to use the Python Facebook Graph API
问题描述
非常感谢
Justin
Github中有一个用于Python-Facebook集成的库: https://github.com/pythonforfacebook/facebook-sdk
基本用法
graph = facebook.GraphAPI(oauth_access_token)
profile = graph.get_object(me)
friends = graph.get_connections(我,朋友)
graph.put_object(me,feed,message =我正在写在我的墙上!)
Could any of you explain how exactly to use the Facebook Graph API? It makes ABSOLUTELY NO sense to me. I understand that I have to have an api key and a secret app key and I have those. I just need to know what the basics are to get the data from graph.facebook.com using Python. There are no sources ANYWHERE and its killing me. In short, how do I get to the point where I can open a url with certain parameter passed, and it actually return the data to me?
Thanks so much Justin
There's a library in Github for Python-Facebook integration: https://github.com/pythonforfacebook/facebook-sdk
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!")
这篇关于如何使用Python Facebook Graph API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!