Skip to main content

Pyramid routes and helpers for Facebook canvas applications

Project description

Provides simple pyramid routes/views for facebook canvas application.

Some documentation on http://pyramid_facebook.rtfd.org

Configuration

  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

    http://127.0.0.1:6543/[facebook app namespace]/
    
  4. Include pyramid_facebook in your config:

    config.include('pyramid_facebook')
    config.scan()
    
  5. Define your facebook canvas view:

    from pyramid_facebook.canvas import facebook_canvas
    
    @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]
    

Project details


Release history Release notifications

History Node

2.0.2

History Node

2.0.1

History Node

1.0.1

History Node

0.6.7

History Node

0.6.6

History Node

0.6.5

History Node

0.6.4

History Node

0.6.4.dev0

History Node

0.6.3

History Node

0.6.2

History Node

0.6.2.dev0

History Node

0.6.1

History Node

0.6.0

History Node

0.5.366

History Node

0.5.363

History Node

0.5.360

History Node

0.5.355

History Node

0.5.353

History Node

0.5.347

History Node

0.5.324

History Node

0.4.317

History Node

0.4.313

History Node

0.3.293

History Node

0.3.290

History Node

0.3.285

History Node

0.3.281

History Node

0.2.277

History Node

0.2.268

History Node

0.2.262

History Node

0.2.258

History Node

0.2.250

History Node

0.2.246

History Node

0.2.243

History Node

0.2.235

History Node

0.2.229

History Node

0.2.226

History Node

0.2.220

History Node

0.2.217

History Node

0.2.214

History Node

0.2.211

History Node

0.2.207

History Node

0.2.2

History Node

0.1.194

This version
History Node

0.1.186

History Node

0.1.183

History Node

0.1.179

History Node

0.1.176

History Node

0.1.171

History Node

0.1.167

History Node

0.1.160

History Node

0.1.145

History Node

0.1.140

History Node

0.1.127

History Node

0.1.123

History Node

0.1.116

History Node

0.1.57

History Node

0.1.37

History Node

0.1.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyramid_facebook-0.1.186.tar.gz (22.5 kB) Copy SHA256 hash SHA256 Source None Jan 15, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page