Skip to content

Commit

Permalink
Make variable names consistent.
Browse files Browse the repository at this point in the history
`get_app_access_token` uses `application_id` and `application_secret`.
Since the method is not called `get_application_access_token` and
`app_id` is used everywhere else in the file, this changes makes sense.
  • Loading branch information
martey committed Dec 7, 2011
1 parent cabe1e0 commit 930b335
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,17 +421,17 @@ def auth_url(app_id, canvas_url, perms = None):
kvps['scope'] = ",".join(perms)
return url + urllib.urlencode(kvps)

def get_app_access_token(application_id, application_secret):
def get_app_access_token(app_id, app_secret):
"""
Get the access_token for the app that can be used for insights and creating test users
application_id = retrieved from the developer page
application_secret = retrieved from the developer page
app_id = retrieved from the developer page
app_secret = retrieved from the developer page
returns the application access_token
"""
# Get an app access token
args = {'grant_type':'client_credentials',
'client_id':application_id,
'client_secret':application_secret}
'client_id':app_id,
'client_secret':app_secret}

file = urllib2.urlopen("https://graph.facebook.com/oauth/access_token?" +
urllib.urlencode(args))
Expand Down

0 comments on commit 930b335

Please sign in to comment.