pyfacebook

Request Extended Permissions in Facebook, Django, Pyfacebook

烈酒焚心 提交于 2019-12-24 17:17:37
问题 I'm developing an IFrame application in Facebook (using pyfacebook and Django) and could not understand the official documentation. Can someone give me a pointer on how to request extended permissions (like read_stream, publish_stream and offline_access)? I experimented with FB Connect but I'm not even sure it's the right way to go for an IFrame application. The following code placed in my template, pops up the alerts but no permission dialog: FB.init(my_api_key, "/media/js/xd_receiver.htm");

app-engine-patch and pyFacebook not working

て烟熏妆下的殇ゞ 提交于 2019-12-19 03:52:10
问题 I am trying to write a facebook app using app-engine-patch and pyFacebook. I am using nothing but the examples provided with each tool and for some reason it will not work. I have combined the two just as described in the accepted answet here: Facebook, Django, and Google App Engine app-engine-patch seems to work just fine but when I try to use @facebook.require_login() I get this from GAE's logs: Exception in request: Traceback (most recent call last): File "/base/data/home/apps/app-name/1

Update status Facebook using Python

和自甴很熟 提交于 2019-12-18 12:43:00
问题 I'm trying the solve problem update status using facebook API with pyfacebook . So I look at here Update Facebook Page's status using pyfacebook and I think doesn't work anymore. Well, finally I solve the problem: #!/usr/bin/python import facebook # Replace these with your app's credentials api_key = 'YOUR_API_KEY' secret_key = 'YOUR_SECRET_KEY' client = facebook.Facebook(api_key, secret_key) client.auth.createToken() client.login() print '[*] Please login / give permission application to

GraphApi module present in pyfacebook or not

吃可爱长大的小学妹 提交于 2019-12-10 10:08:39
问题 i have installed pyfacebook as well as python sdk even the i am getting error as follows when using this code import facebook token = 'my token' graph = facebook.GraphAPI(token) profile = graph.get_object("me") friends = graph.get_connections("me", "friends") friend_list = [friend['name'] for friend in friends['data']] print friend_list error that i am facing is graph = facebook.GraphAPI(token) AttributeError: 'module' object has no attribute 'GraphAPI' 回答1: I had this problem when I install

What's the easiest way to get my facebook status and photos using python?

纵饮孤独 提交于 2019-12-06 16:25:41
问题 I just want to import my facebook status and photos to my personal django website but all the examples and documentation i can find are for developing facebook applications. A simple rss feed would be enough but it doesnt seem to exist in facebook. Do i really have to create a full facebook app to do this? 回答1: A simple facebook application isn't that hard ... excluding trying to decipher the soup on developers.facebook.com. The "problem" is that you need to get an application key,

Update Facebook Page's status using pyfacebook

独自空忆成欢 提交于 2019-12-06 10:14:11
问题 I am attempting to add functionality to my Django app: when a new post is approved, I want to update the corresponding Facebook Page's status with a message and a link to the post automatically. Basic status update. I have downloaded and installed pyfacebook - and I have read through the tutorial from Facebook. I have also seen this suggestion here on SO: import facebook fb = facebook.Facebook('YOUR_API_KEY', 'YOUR_SECRET_KEY') fb.auth.createToken() fb.login() # THIS IS AS FAR AS I CAN GET fb

Update Facebook Page's status using pyfacebook

依然范特西╮ 提交于 2019-12-04 15:50:40
I am attempting to add functionality to my Django app: when a new post is approved, I want to update the corresponding Facebook Page's status with a message and a link to the post automatically. Basic status update. I have downloaded and installed pyfacebook - and I have read through the tutorial from Facebook. I have also seen this suggestion here on SO : import facebook fb = facebook.Facebook('YOUR_API_KEY', 'YOUR_SECRET_KEY') fb.auth.createToken() fb.login() # THIS IS AS FAR AS I CAN GET fb.auth.getSession() fb.set_status('Checking out StackOverFlow.com') When I get to the login() call,

How to get (and use) extended permissions in Facebook with Python/Django

こ雲淡風輕ζ 提交于 2019-12-03 09:22:57
问题 I'm trying to write a simple app that lets a user grant my code permission to write to her page's Facebook stream. As I understand it, it should be as easy as: Have the user click on a button that launches a popup containing the a page in my Facebook app. In that page, they click on something that grants stream_publish to my app and assigns that permission to their page. Window closes, I now have all the info I need to run a script in cron to push stuff to that page's stream. I've been

How to get (and use) extended permissions in Facebook with Python/Django

半腔热情 提交于 2019-12-02 23:48:06
I'm trying to write a simple app that lets a user grant my code permission to write to her page's Facebook stream. As I understand it, it should be as easy as: Have the user click on a button that launches a popup containing the a page in my Facebook app. In that page, they click on something that grants stream_publish to my app and assigns that permission to their page. Window closes, I now have all the info I need to run a script in cron to push stuff to that page's stream. I've been reading the wiki for days. Notes on pyfacebook are at least a year out of date, and people have pointed me to

app-engine-patch and pyFacebook not working

给你一囗甜甜゛ 提交于 2019-11-30 22:44:00
I am trying to write a facebook app using app-engine-patch and pyFacebook. I am using nothing but the examples provided with each tool and for some reason it will not work. I have combined the two just as described in the accepted answet here: Facebook, Django, and Google App Engine app-engine-patch seems to work just fine but when I try to use @facebook.require_login() I get this from GAE's logs: Exception in request: Traceback (most recent call last): File "/base/data/home/apps/app-name/1.339079629847560090/common/zip-packages/django-1.1.zip/django/core/handlers/base.py", line 92, in get