Oracle APEX: Get Facebook User Token? -
i'm trying send rest commands oracle apex facebook graph api user token.
here code :
serverurl := 'http://myreverseproxy/graph.facebook.com/oauth/access_token'; redirecturl := 'http://www.example.com'; applicationid := 'xxxx'; applicationpassword := 'yyyy'; command := serverurl || '?client_id=' || applicationid || '&redirect_uri=' || redirecturl || '&client_secret=' || applicationpassword || '&default_graph_version=v2.4'; method := 'get'; response := apex_web_service.make_rest_request(p_url => command, p_http_method => method);
the code doesn't work. following error:
<!doctype html public "-//ietf//dtd html 2.0//en"> <html> <head> <title>502 proxy error</title> </head> <body> <h1>proxy error</h1> <p> proxy server received invalid response upstream server.<br /> proxy server not handle request <em><a href="/oauth/access_token">get" </p> /graph.facebook.com/oauth/access_token</a></em>. <p> reason: <strong>dns lookup failure for: graph.facebook.comoauth</strong> </p></p> </body> </html>
does know how solve please ?
thanks.
Comments
Post a Comment