turn off CURL-ing SSL in facebook php-sdk


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. public static $CURL_OPTS = array(
  2. /**
  3.   * increase the timeout
  4.   * if experiencing badd hosting connections
  5.   **/
  6. CURLOPT_CONNECTTIMEOUT => 110,
  7. CURLOPT_RETURNTRANSFER => true,
  8. CURLOPT_TIMEOUT => 160,
  9. CURLOPT_USERAGENT => 'facebook-php-2.0',
  10. /**
  11. * add these to turn off the SSL
  12. **/
  13. CURLOPT_SSL_VERIFYPEER => false,
  14. CURLOPT_SSL_VERIFYHOST => false,

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.