public class DefaultFacebookGraphClient extends DefaultFacebookClient {
// Override default web requestor to add read timeout parameter
DefaultFacebookGraphClient(String accessToken, final Integer timeout, final String proxyHost, final Integer proxyPort, final Version version) {
super(accessToken,
new DefaultWebRequestor() {
@Override
protected void customizeConnection(HttpURLConnection connection) {
connection.setReadTimeout(timeout);
}