tschellenbach/Django-facebook — Issue #66: struggling with server-side authentication
Author: guyf
Created: 2011-11-29 07:58:29+00:00
State: open

Hi Thierry,

I am hoping to get onto sorting out the permissions issue this week. Just struggling to use server side authentication through the API at the moment. I am creating an app request and trying to authorise the user when they accept the request. I can do it if I post the urls directly, something like....

https://graph.facebook.com/oauth/authorize?client_id=%s&redirect_uri=%s
https://graph.facebook.com/oauth/access_token?client_id=%s&redirect_uri=%s&client_secret=%s&code=%s
https://graph.facebook.com/me?client_id=%s&%s

I get the impression I can do it via the API with something like....
from django_facebook.api import get_facebook_graph
graph = get_facebook_graph(request)
logging.debug('RM: facebook %s' % str(graph.me()))

open_facebook.api says 'valid signed request received' but the parsed_data returned from it contains neither 'oauth_token' or 'code' and so get_facebook_graph returns None.

Am I missing a step in using the API? I want to get it working through the API so I can use the connect_user flow.

Thanks, Guy.