marksteve/fboauth2 — pull request #1 by jpanganiban (2012-05-08 18:03:30+00:00)
Title: get_access_token exception

The exception from 'if not response.ok' was raising a KeyError. This was because the exception being raised was trying to access non-existent attributes from the error returned by Facebook as it was wierdly nested ({error: {type: 'type', 'message': 'message'}}).

Also accessing a dict's attributes using the 'get' method is safer.