pythonforfacebook/facebook-sdk — pull request #82 by blablacio (2013-06-25 17:30:55+00:00)
Title: FQL API fix

It seems that FQL API changed in the last year but facebook-sdk doesn't track these changes.

FQL queries work for regular accounts with current code but using the current endpoint yields an error for pages:
GraphAPIError: Impersonated access tokens can only be used with the Graph API

I fixed the problem by changing the endpoint and altering the parameter passed as documented here:
https://developers.facebook.com/docs/technical-guides/fql/