I am trying to install facebook php business sdk but I am getting below Fatal error.

I used the below command composer require facebook/php-business-sdk But I am below fatal error Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 134217736 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/RuleSet.php on line 83 For reference please find the below image enter image description here

1 Answer 1


Memory Limit issue,

Primarily you can use the following command

COMPOSER_MEMORY_LIMIT=-1 composer require <package-name>

Permanently, you need to update the PHP memory limit.

  • but i am getting like this Could not open input file: composer.phar Dec 15, 2020 at 8:06
  • i has increase the memory limit even though i am getting above error Dec 15, 2020 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.