Open ryanwaits opened 5 years ago
response = Faraday.get("https://graph.facebook.com/v3.2/#{facebook_uuid}?fields=first_name,last_name,profile_pic,email,timezone&access_token=#{ENV["ACCESS_TOKEN"]}")
=> #<Faraday::Response:0x00559911862720 @on_complete_callbacks=[], @env=#<Faraday::Env @method=:get @body="{\"error\":{\"message\":\"Unsupported get request. Object with ID '2548072571930794' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https:\\/\\/developers.facebook.com\\/docs\\/graph-api\",\"type\":\"GraphMethodException\",\"code\":100,\"error_subcode\":33,\"fbtrace_id\":\"AUlLup0JBYn\"}}" @url=#<URI::HTTPS https://graph.facebook.com/v3.2/2548072571930794?access_token=EAAgcpZAQA9eABADrIzGMcxatdNdYhmhD04mZAfZAlCiG757dxBvfQamJZCNUnV9tiLVsxq7Rg4umi3LAFMygWVQBJOZAFiY884mM7ywJxl12EzKN2MLBTzLyWmUFGXGs1ZAZCjZBkenZCeRvHd9NbfkFd0eoS76AW56ljRqTdYx1mZBQx5CXx86kZAj&fields=first_name%2Clast_name%2Cprofile_pic%2Cemail%2Ctimezone> @request=#<Faraday::RequestOptions (empty)> @request_headers={"User-Agent"=>"Faraday v0.15.4"} @ssl=#<Faraday::SSLOptions verify=true> @response=#<Faraday::Response:0x00559911862720 ...> @response_headers={"vary"=>"Accept-Encoding", "x-page-usage"=>"{\"call_count\":1,\"total_cputime\":1,\"total_time\":1}", "x-app-usage"=>"{\"call_count\":0,\"total_cputime\":0,\"total_time\":0}", "www-authenticate"=>"OAuth \"Facebook Platform\" \"invalid_request\" \"Unsupported get request. Object with ID '2548072571930794' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api\"", "content-type"=>"application/json; charset=UTF-8", "facebook-api-version"=>"v3.2", "strict-transport-security"=>"max-age=15552000; preload", "pragma"=>"no-cache", "x-fb-rev"=>"4859829", "access-control-allow-origin"=>"*", "cache-control"=>"no-store", "x-fb-trace-id"=>"AUlLup0JBYn", "x-fb-request-id"=>"ALqhXWQHoDJw1PDVo9gUOj9", "expires"=>"Sat, 01 Jan 2000 00:00:00 GMT", "x-fb-debug"=>"oKkHw4GRgntru5DetvPVnJvgLM8PkRcEV4RkXCA3Y7oJz/EFKdOxgXIRZtknaVIhgRfSipP2nj1JoDZb9LLMYA==", "date"=>"Sat, 16 Mar 2019 22:16:14 GMT", "connection"=>"close", "content-length"=>"285"} @status=400 @reason_phrase="Bad Request">>
400
errors on Get Started (bad facebook requests)