1. Éric Araujo
  2. pyramid_facebook


pyramid_facebook /

Filename Size Date modified Message
130 B
2.6 KB
1.5 KB
1.1 KB
139 B
1.3 KB
820 B
46 B
63 B
1.0 KB
312 B

Provides simple pyramid routes/views for facebook canvas application.

Some documentation on https://pyramid_facebook.readthedocs.org/en/latest/


  1. Create facebook application on https://developers.facebook.com/apps

  2. Add facebook settings in .ini file under application section and fill with facebook application parameters:

    facebook.app_id =
    facebook.secret_key =
    facebook.namespace =
    facebook.scope =
  3. In the app settings on https://developers.facebook.com/apps, set callbak url to point to[facebook app namespace]/
  4. Include pyramid_facebook in your config:

  5. Define your facebook canvas view:

    from pyramid_facebook.canvas import facebook_canvas
    def canvas(context, request):
       # canvas is available only to users who accepted facebook permission
       # defined in setting['facebook.scope'].
       # context.facebook_data dict contains signed_request content.
       # i.e.:
       # user_id = context.facebook["user_id"]
       return Response('Hello Facebok World')
  6. Browse to your app on

    http://apps.facebook.com/[app namespace]