pythonforfacebook/facebook-sdk — pull request #36 by facugaich (2012-06-10 19:54:10+00:00)
Title: Convert strings to ascii before passing them to HMAC

HMAC can only handle byte (i.e. ascii) strings as explained here: http://bugs.python.org/issue5285

This meant that when parse_signed_request was called with an Unicode app_secret an exception was raised.

I fixed the problem converting the two strings passed to HMAC to ascii inside parse_signed_request, so that the latter can now handle Unicode strings.