Skip to content

Commit

Permalink
Change FQL endpoint and query parameter to reflect changes in the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavrc committed Feb 21, 2014
1 parent 966a6b4 commit 32b1218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfb/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class FacebookClient(object):

BASE_AUTH_URL = "%soauth/authorize?" % GRAPH_URL
DIALOG_BASE_URL = "%sdialog/feed?" % FACEBOOK_URL
FBQL_BASE_URL = "%smethod/fql.query?" % API_URL
FBQL_BASE_URL = "%sfql?" % GRAPH_URL
BASE_TOKEN_URL = "%soauth/access_token?" % GRAPH_URL

DEFAULT_REDIRECT_URI = "http://www.facebook.com/connect/login_success.html"
Expand Down Expand Up @@ -245,7 +245,7 @@ def execute_fql_query(self, query):
Executes a FBQL query and return a list of objects
"""
table = self._get_table_name(query)
url_path = self._get_url_path({'query' : query, 'access_token' : self.access_token, 'format' : 'json'})
url_path = self._get_url_path({'q' : query, 'access_token' : self.access_token, 'format' : 'json'})
url = "%s%s" % (self.FBQL_BASE_URL, url_path)
data = self._make_request(url)

Expand Down

0 comments on commit 32b1218

Please sign in to comment.