def get_app_access_token(app_id, app_secret):
 args = {'grant_type': 'client_credentials', 'client_id': app_id, 'client_secret': app_secret}
 file = urllib2.urlopen(('https://graph.facebook.com/oauth/access_token?' + urllib.urlencode(args)))
 try:
  result = file.read().split('=')[1]
 finally:
  file.close()
 return result

def get_app_access_token ( app_id , app_secret ) : args = { 'grant_type' : 'client_credentials' , 'client_id' : app_id , 'client_secret' : app_secret } file = urllib2 . urlopen ( ( 'https://graph.facebook.com/oauth/access_token?' + urllib . urlencode ( args ) ) ) try : result = file . read ( ) . split ( '=' ) [ 1 ] finally : file . close ( ) return result
get the access_token for the app .