Check if headers have been sent before starting a session to prevent warning messages.

When running PHPUnit on my project the following exception is thrown:

session_start(): Cannot send session cookie - headers already sent by (output started at /usr/local/php5/lib/php/PHPUnit/Util/Printer.php:172)

file: .../vendor/facebook/php-sdk/src/facebook.php on line: 49