summaryrefslogtreecommitdiffstats
path: root/fbconnect
diff options
context:
space:
mode:
Diffstat (limited to 'fbconnect')
-rwxr-xr-xfbconnect/fb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fbconnect/fb.py b/fbconnect/fb.py
index a1c3e424..370e160b 100755
--- a/fbconnect/fb.py
+++ b/fbconnect/fb.py
@@ -9,7 +9,7 @@ except:
from pjson import fread as load_json
from models import FBAssociation
-import md5
+import hashlib
import logging
REST_SERVER = 'http://api.facebook.com/restserver.php'
@@ -21,7 +21,7 @@ def generate_sig(values):
keys.append(key)
signature = ''.join(['%s=%s' % (key, values[key]) for key in keys]) + settings.FB_SECRET
- return md5.new(signature).hexdigest()
+ return hashlib.md5(signature).hexdigest()
def check_cookies_signature(cookies):
API_KEY = settings.FB_API_KEY