I'm trying to run the Facebook SDK for PHP v4.0 for the past two days, but without results. I'm not using Composer, but the autoload.php file. I'm getting the following errror message :
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2623910681 bytes)
~ It tries to allocate about 2GB memory, and I'm using a shared hosting, I can't increase the memory_limit more than 256MB...
I'm loading the autoload.php file in this way:
session_start();
define( 'ROOT', dirname( __FILE__ ) . '/' );
require_once( ROOT . 'facebook-php-sdk-v4-4.0-dev/autoload.php' );
use Facebook\FacebookSession;
Is there some solution to this problem? I browsed much on google, there are people facing same issue. Also the amount of memory used doesn't seem reasonable to me.
I hope someone has an idea how to fix this!