|
Oli - 2011-04-19 07:45:00
First of all, thank you for sharing your script!
However, I went to use it and it shows me the 'THERE HAS BEEN AN ERROR: pageId invalid' error, no matter what pageId I use. I've tried using your example pageId, but it's still the same.
The pageId I'd like to access is 198345696871561
Any ideas why it might be failing?
Thank you!
Daniel Vasic - 2011-04-19 12:15:35 - In reply to message 1 from Oli
Check in phpinfo is curl is enabled if not then you need to go to phpcUrl.php and change this function :
public function curlGetFile($curlUrl)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $curlUrl);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
with :
public function curlGetFile($curlUrl)
{
return file_get_contents($curlUrl);
}
If not that don't use api key and api secret when creating FacePageAlbum object becouse your open ssl is disabled on your server, and PHP version needs to be 5. Otherwise I dont know...
Daniel Vasic - 2011-04-19 12:30:33 - In reply to message 2 from Daniel Vasic
Cassiano Aquino - 2012-11-30 22:34:54 - In reply to message 3 from Daniel Vasic
Links OFF !
I am having the same problem, but im my case, it only works in localhost, when i upload to server, it got this message.
Daniel Vasic - 2012-12-01 13:27:06 - In reply to message 4 from Cassiano Aquino
You have to enable openSSl extension on your server and have ssl certificate to connect with app authentification (ID and Secret) if not enable CURL extension in php.ini. Call phpinfo(); to see if these extensions are enabled if not check to see if page ID is valid and if it's indeed a Facebook page.
Best regards,
D.Vasic
(Note thanks to everyone for the response I will check into this problems.)
|