Package: pyramid_facebook
Provides simple pyramid routes/views for facebook canvas application.Some documentation onhttps://pyramid-facebook.readthedocs.org/en/latest/ConfigurationCreate facebook application onhttps://developers.facebook.com/appsAdd 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 onhttps://developers.facebook.com/apps, set callbak url
to point tohttp://127.0.0.1:6543/[facebook app namespace]/Includepyramid_facebookin your config:config.include('pyramid_facebook')config.scan()Define your facebook canvas view:frompyramid_facebook.canvasimportfacebook_canvas@facebook_canvas()defcanvas(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"]returnResponse('Hello Facebok World')Browse to your app onhttp://apps.facebook.com/[app namespace]Changelog2.0.2 (2014-12-17)Add a test configuration inpyramid_facebook.testswhich mocks facepy
graph api object. To use it in functionnal tests:config.include('pyramid_facebook.tests')when configuring test app.2.0.1 (2014-11-25)Upgrade to facebook graph api v21.0.1 (2014-11-25)Add Facebook payment event type for refunded orders.0.6.7 (2014-08-26)Remove constraint onpyramid_contextauthversion requirement.Addpyramid_makoas required dependency.0.6.6 (2014-05-05)Improve request propertyrequest.graph_apiAdd request propertyrequest.fb_app_token0.6.5 (2014-04-23)2014-04-23 - Facebook real time payment fails and logging code raises a
KeyError.0.6.4 (2014-03-26)0.6.3 (2014-03-25)Fix doc and rst file for pypi.0.6.2 (2014-03-25)Removeauthentication_policydecorator in favor ofconfig.register_authentication_policy.0.6.1 (2014-03-24)Update dependency to pyramid_contextauth >= 0.50.5.324Add aGraphAPIutility lazily instantiated with the application token.Add attributeChangeNotification.objectevent.EventOrderReceivedis notified when receiving a real-time payment updateAddpyramid_facebook.tests.integration.test_paymentsused inpyramid_facebook.tests.functional.test_paymentsBreaking ChangesRenameOrderCreatedforOrderReceivedCan be sent multiple times for the same order with same or different
statusRenameOrderCreationErrorforOrderProcessingError0.4.317Added pfacebook-real-time command to update real time subscriptions.Breaking changes: namespace is now added by the framework in opengraph URLs.0.2.246Reusable view and template for OpenGraph objects.Support for Facebook local currency payments.This release is backward-compatible for apps that use the app currency
and Facebook credits decorators.  A future version will remove support
for credits (Facebook will remove them) and app currencies (which can now
use the generic OpenGraph view).0.2.235Packaging fix-ups.0.2.220Fix bug where permissions defined infacebook.scopesetting were ignored
byprompt_authorize.0.2.217Add view to redirect from GET canvas to the Facebook application page.0.2.207Move predicates from lib to predicates.AddPermissionEventPredicatefor filtering event subscriber with permission.0.2.2Includepyramid_contextauthfor dealing with context-based authentication.0.1.194AddedCanceledOrderwhen any payment update fail during event notification.add includeme for any sub module to uniform configurationfacebook auth policy does not rely anymore on context for authentication.add anCanvasRequestedevent triggered when a identified user request
canvas.0.1.127In credits: Check item title not being an empty string to avoid FB failing with
no explicit message. “Fail early.”Fixed bug which raised configuration conflict becausepyramid_facebookwas
not commiting config viaconfig.commit.0.0Initial version