Skip to content

Instantly share code, notes, and snippets.

View brephophagist's full-sized avatar

Jason Hawkins brephophagist

View GitHub Profile
@brephophagist
brephophagist / gist:ae5f54c74bad913fa1e3
Last active August 29, 2015 14:23
example signal use
import signal
# ....
def _death_handler(signum, frame):
"""
Handles SIGINT/SIGQUIT by cleaning up partially-added threads
"""
utils.print_ts('Caught fatal signal {}'.format(signum))
import authomatic
from authomatic.providers import oauth2
class Facebook_2_0(oauth2.Facebook):
user_authorization_url = 'https://www.facebook.com/v2.0/dialog/oauth'
access_token_url = 'https://graph.facebook.com/v2.0/oauth/access_token'
user_info_url = 'https://graph.facebook.com/v2.0/me'
user_info_scope = ['public_profile', 'email']