Skip to content

Commit

Permalink
Removing error logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwkelly committed Jul 12, 2012
1 parent 5a954e0 commit de6b5a5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions includes/facebook-php-sdk/class-facebook-wp.php
Expand Up @@ -25,22 +25,19 @@ protected function makeRequest( $url, $params, $ch=null ) {

if ( empty( $url ) || empty( $params ) )
throw new WP_FacebookApiException( array( 'error_code' => 400, 'error' => array( 'type' => 'makeRequest', 'message' => 'Invalid parameters and/or URI passed to makeRequest' ) ) );
error_log(var_export($url,1));
error_log(var_export($params,1));
error_log(var_export(debug_backtrace(),1));

$params = array(
'redirection' => 0,
'httpversion' => '1.1',
'timeout' => 60,
'user-agent' => apply_filters( 'http_headers_useragent', 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) . '; facebook-php-' . self::VERSION . '-wp' ),
'headers' => array( 'Connection' => 'close'),
'headers' => array( 'Connection' => 'close' , 'Content-type' => 'application/x-www-form-urlencoded'),
'sslverify' => false, // warning: might be overridden by 'https_ssl_verify' filter
'body' => http_build_query( $params, '', '&' )
);

$response = wp_remote_post( $url, $params );

error_log(var_export($response,1));

if ( is_wp_error( $response ) ) {
throw new WP_FacebookApiException( array( 'error_code' => $response->get_error_code(), 'error_msg' => $response->get_error_message() ) );
}
Expand Down

0 comments on commit de6b5a5

Please sign in to comment.