def cookie_signature(*parts):
    hash = hmac.new(FACEBOOK_APP_SECRET, digestmod=hashlib.sha1)
    for part in parts: hash.update(part)
    return hash.hexdigest()
Generates a cookie signature.
dataset/ETHPy150Open aino/python-fb/examples/oauth/facebookoauth.py/cookie_signature