Skip to content

Commit

Permalink
remove extra step for parsing facebook response as was returning nil
Browse files Browse the repository at this point in the history
  • Loading branch information
mlennie committed Sep 5, 2017
1 parent 64a50f7 commit d484946
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/omnicontacts/authorization/oauth2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ def token_req_params 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"]]
Expand Down

0 comments on commit d484946

Please sign in to comment.