Using PyFacebook with the Facebook middleware as a decorator

1
2
3
4
5
6
7
8
#its just as easy as
from django.utils.decorators import decorator_from_middleware
from facebook.djangofb import FacebookMiddleware

@decorator_from_middleware(FacebookMiddleware)
@facebook.require_login()
def canvas(request):
    ....

More like this

  1. Facebook shell by stephenemslie 3 years, 8 months ago
  2. Little middleware that create a facebook user by marinho 5 years, 5 months ago
  3. Fetching list of SQL queries executed so far for all requests by hiddentao 1 year, 5 months ago
  4. get and image object by grillermo 1 year, 2 months ago
  5. AdminPeepingMiddleware by buriy 5 years, 8 months ago

Comments

(Forgotten your password?)