From d954516c71b7f7f2260e73ac4a60ad306716a79a Mon Sep 17 00:00:00 2001 From: Marios Date: Mon, 11 Jun 2012 01:41:05 -0700 Subject: [PATCH] The way to retrieve the correct value for expires variable depends on whether this is a normal facebook app or a canvas app. The value is correctly extracted but when it comes time to assign it to our dictionary, the assumption is made that it is a normal facebook app. This breaks canvas apps --- social_auth/backends/facebook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social_auth/backends/facebook.py b/social_auth/backends/facebook.py index b68ae6e..638d8f1 100644 --- a/social_auth/backends/facebook.py +++ b/social_auth/backends/facebook.py @@ -135,7 +135,7 @@ class FacebookAuth(BaseOAuth2): # expires will not be part of response if offline access # premission was requested if expires: - data['expires'] = response['expires'][0] + data['expires'] = expires kwargs.update({'auth': self, 'response': data, -- 2.39.5