Require extended permissions in FBML pyfacebook app
Posted
by jlpp
on Stack Overflow
See other posts from Stack Overflow
or by jlpp
Published on 2010-03-13T22:42:16Z
Indexed on
2010/03/13
22:45 UTC
Read the original article
Hit count: 1010
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='publish_stream')
as in:
@decorator_from_middleware(FacebookMiddleware)
@facebook.require_login(required_permissions='publish_stream')
def canvas(request, template):
...
Requesting extended permissions in a pyfacebook-based Facebook iFrame app has been discussed. Requesting extended permissions in an FBML app too. My objective is to require extended permissions in an FBML app. Am I missing something or can anyone suggest a workaround?
Thanks.
© Stack Overflow or respective owner