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
Create facebook application on https://developers.facebook.com/apps
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 =
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]/
Include pyramid_facebook in your config:
config.include('pyramid_facebook') config.scan()
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')
Browse to your app on
http://apps.facebook.com/[app namespace]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyramid_facebook-0.1.167.tar.gz
(22.5 kB
view details)
File details
Details for the file pyramid_facebook-0.1.167.tar.gz
.
File metadata
- Download URL: pyramid_facebook-0.1.167.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ca2dd8062bdf6eebbe57f2d6e4293f08faec1b60c2305104beb4de37ce3a7d5 |
|
MD5 | 7f1ca9acd625b935a02a740b01a443af |
|
BLAKE2b-256 | 36fe4094de653f1de4e794fe7d2d73f354408c45f98699c3f2c09d73c2a28eff |