diff --git a/pyfb/client.py b/pyfb/client.py index d153a39..17ec95d 100755 --- a/pyfb/client.py +++ b/pyfb/client.py @@ -6,7 +6,7 @@ import auth from urlparse import parse_qsl from utils import Json2ObjectsFactory - +import json class FacebookClient(object): """ This class implements the interface to the Facebook Graph API @@ -135,12 +135,12 @@ def get_access_token(self, app_secret_key, secret_code, redirect_uri): url = "%s%s" % (self.BASE_TOKEN_URL, url_path) data = self._make_request(url) - + data = json.loads(data) if not "access_token" in data: ex = self.factory.make_object('Error', data) raise PyfbException(ex.error.message) - data = dict(parse_qsl(data)) + # data = dict(parse_qsl(data)) self.access_token = data.get('access_token') self.expires = data.get('expires') return self.access_token