tschellenbach/Django-facebook — Issue #80: Canvas page - another approach
Author: guyf
Created: 2012-01-17 15:22:08+00:00
State: open

(Sorry - not strictly an issue but I thought worth sharing)

In your FB app:
Settings->Advanced->Enhanced Auth Enabled
Settings->Auth Dialog-> Authenticated Referrals->[set required permissions]

Then in the view that is hit by the canvas page url:
from django_facebook.connect import connect_user
action, user = connect_user(request)

You can assume that the user has already granted permissions as FB will throw up the permissions dialogue for them before calling the canvas url the request will automatically contain a signed_request key which connect_user handles. You now have a connected and logged in user with having to implement any oauth redirects.

Hope that is correct and useful.

Guy.