lib/omnicontacts/authorization/oauth2.rb in omnicontacts-0.2.5 vs lib/omnicontacts/authorization/oauth2.rb in omnicontacts-0.3.0

- old
+ new

@@ -54,9 +54,12 @@ :grant_type => "authorization_code" } end def access_token_from_response response + if auth_host == "graph.facebook.com" + response = query_string_to_map(response).to_json + end json = JSON.parse(response) raise json["error"] if json["error"] [json["access_token"], json["token_type"], json["refresh_token"]] end