from facepy import utils
app_id = 134134134134
app_secret = 'XXXXXXXXXXXXXXXXXX'
oath_access_token = utils.get_application_access_token(app_id, app_secret)
How to get Facebook access token using Python library?