Pyramid routes and helpers for Facebook canvas applications
Project description
Provides simple pyramid routes/views for facebook canvas application.
Some documentation on https://pyramid_facebook.readthedocs.org/en/latest/
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.6.2.tar.gz
(32.8 kB
view details)
File details
Details for the file pyramid_facebook-0.6.2.tar.gz
.
File metadata
- Download URL: pyramid_facebook-0.6.2.tar.gz
- Upload date:
- Size: 32.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a1fcd60c00056dcb55e6b4f2c64a0258dc6ed75e2865f239950b0e2984e0e44 |
|
MD5 | d5a67d7ea7807c330fd63b1469684ad2 |
|
BLAKE2b-256 | 402488938925bae160aa8a664034ba5ff844e3cdaa44c17c58b4e4c776e5b1f6 |