Skip to content

Commit d484946

Browse files
committed
remove extra step for parsing facebook response as was returning nil
1 parent 64a50f7 commit d484946

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/omnicontacts/authorization/oauth2.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ def token_req_params code
5656
end
5757

5858
def access_token_from_response response
59-
if auth_host == "graph.facebook.com"
60-
response = query_string_to_map(response).to_json
61-
end
6259
json = JSON.parse(response)
6360
raise json["error"] if json["error"]
6461
[json["access_token"], json["token_type"], json["refresh_token"]]

0 commit comments

Comments
 (0)