If you are having problems with connecting to Facebook…
-
If you are getting warnings for using file_get_contents, then it means your host has disabled fopen use. Don’t go around by enabling it with a php.ini. Instead, do the following:
Find and open social-connect/facebook/callback.php.
Place the following code before $client_id = get_option… and after require_once(dirname(dirname(__FILE__)) . ‘/utils.php’ );…
function curl_get_contents ($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_URL, $url); $html = curl_exec($curl); curl_close($curl); return $html; }
Find parse_str(file_get_contents and replace with
parse_str(curl_get_contents
Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
- The topic ‘If you are having problems with connecting to Facebook…’ is closed to new replies.