pyfacebook

Update Facebook Page's status using pyfacebook

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 s...

Having trouble importing middleware classes in App Engine / Django

Trying to get facebook connect to work on app engine, and so I'm following these instructions: http://www.slideshare.net/mrtrosen/lab305-django-facebook-connect-integration-example One of the steps requires me to add to my middleware_classes, and so I've added the following to settings.py (copied from slide 18 in the presentation above...

How to Publish stream using pyfacebook?

HI, Can anyone tell me how to publish a story or a news feed on a user profile using pyfacebook, i have used fbml = "<fb:wide><fb:subtitle>This is the subtitle</fb:subtitle>" fbml += "<fb:if-is-own-profile>This is your profile.<fb:else>This is not your profile.</fb:else></fb:if-is-own-profile></fb:wide>" request.facebook.profile...

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

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 a...

Python, Django, Facebook- Using the facebook.require_login() decorator redirects me to the callback url everytime.

Okay I will try to be as descriptive as possible here, I am using Python-Django server and the pyFacebook helper. I have this callback url on the facebook edit application page: http://panome.eyesee360.com:8000/panomeFbProject/fbLandingPage/ In my project urls.py: urlpatterns = patterns('', (r'^panomeFbProject/', include('panomeF...

app-engine-patch and pyFacebook not working.

Hi, 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: http://stackoverflow.com/questions/984071/facebook-django-and-google-app-engine app-engin...

Why is my Facebook application with error 104 ("invalid signature")?

I am trying to develop a Facebook application using PyFacebook (hosted on Google App Engine). It's an FBML application (runs in a Facebook canvas instead of an iframe). I'm having problems getting any API calls to function. The sequence looks like this: fb = facebook.Faceboook(api_key, secret_key) fb.session_key = cherrypy.request.pa...

Facebook Page details and the RESTful API?

Hi I have a list of Facebook Page urls eg... http://www.facebook.com/daftpunk http://www.facebook.com/DavidGuetta ... What's the best way to: Check if these urls are actually for Facebook Pages and not Profiles Collect details such as # of fans from these Pages Help would be very much appreciated. ...

how to debug facebook app/django setup (url is not valid...)

Hi folks, I'm trying to set up a facebook app using django by following this tutorial: http://www.rkblog.rk.edu.pl/w/p/example-facebook-application-django/ . I get to the point where I start my development server at (manage.py runserver 0.0.0.0:80) then it says: Now under http://apps.facebook.com/NAME/ you should see a basic Facebook ...

PyFacebook Infinite Session

I am trying to set a cron task to read updates for a Facebook application. I have prompted the user to grant Offline Access permissions and i have store the session_key in the db. I am crearing a new Facebook object and besides api and secret key I also use the session_key (previously stored in db) and the fb uid. When i am trying to cr...

stream.publish to Facebook Fan Page wall using pyfacebook as admin user?

http://wiki.developers.facebook.com/index.php/Stream.publish Shows session_key as a parameter, but get: TypeError: publish() got an unexpected keyword argument 'session_key' when I pass a session_key. /User:PyFacebook_Tutorial This appears to be outdated, unsurprisingly. /Authorization_and_Authentication_for_Desktop_Applications Shows ...

how do i set my 'Connect URL'and 'Canvas Callback URL' in facebook.

...

why my facebook content can't come back. i used pyfacebook.

i follow this article step by step http://wiki.developers.facebook.com/index.php/User:PyFacebook_Tutorial#Add_the_middleware 1。 2。 3。 i want to return my site, but it login facebook,how to return to my site ?? 4。 this is my settings in facebook. 5. i set this: Canvas Callback URL http://zjm1126qqcom.gicp.net:8000/ C...

PyFacebook: Facebook() instance has no stream methods

I need to update my Facebook Fan Page in a django app so I have this code: import facebook from django.conf import settings def login_facebook(): fb = facebook.Facebook(settings.FACEBOOK_API_KEY, settings.FACEBOOK_SECRET_KEY) fb.session_key = settings.FACEBOOK_SESSION fb.secret = settings.FACEBOOK_SECRET_KEY fb.uid = se...

Looping Redirect with PyFacebook and Google App Engine

I have a Python Facebook project hosted on Google App Engine and use the following code to handle initialization of the Facebook API using PyFacebook. # Facebook Initialization def initialize_facebook(f): # Redirection handler def redirect(self, url): logger.info('Redirecting the user to: ' + url) self.response....

Request Extended Permissions in Facebook, Django, Pyfacebook

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 ...

Require extended permissions in FBML pyfacebook app

I'm trying to get my FBML canvas page to automatically prompt new app users for permission to publish_stream. Following Facebook's documentation I tried using the required_permissions argument to require_login. That is, I tried to use the pyfacebook require_login decorator like this: @facebook.require_login(required_permissions='publi...

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

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? ...

admin user publishing/addcomment to page stream

I have a Fan Page that I want my application to publish() and addComment() to. The application can post and comment, however, when I addComment() the wall displays the attribution on the wall as that of the Fan Page. And when the application publish() to the Fan Page it attributes the post to the user that logged and not the Fan Page. ...

How to get latest facebook status in python?

I need to be able to get the latest facebook status update of an user that has allowed consent. Is there a way to do this with pyfacebook without having to have the user login in facebook? ...