|
@@ -26,10 +26,10 @@ public class FacebookAccessTokenValidator {
|
|
|
// Define the proxy server details
|
|
|
String proxyHost = "127.0.0.1";
|
|
|
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2");
|
|
|
-
|
|
|
+
|
|
|
int proxyPort = Integer.parseInt(env.getProperty("gfw.proxy.port"));
|
|
|
// Define the target URL
|
|
|
- String targetUrl = "https://graph.facebook.com/v14.0/me?access_token="+accessToken;
|
|
|
+ String targetUrl = GRAPH_API_URL+accessToken;
|
|
|
// Create a Proxy object with the proxy server details
|
|
|
Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress(proxyHost, proxyPort));
|
|
|
// Create a URL object with the target URL
|