PHP 5.4.x makes a few changes to the php.ini file which causes the Facebook PHP SDK to break. The issue is with the PHP SDK, which relies on $_REQUEST from the server, which has changed in PHP 5.4.0.
Facebook PHP SDK: Fixing getUser() on PHP 5.4.x
29