Facebook PHP SDK in a Wordpress Plugin - Errors

I’m writing a Wordpress plugin that uses the Facebook PHP SDK. I’ve actually tried the standard Facebook PHP SDK and also the Facebook PHP SDK that comes with the Facebook Wordpress plugin.

With each version of the Facebook PHP SDK i receiving a different error(s).

What i am trying to do is pull my facebook feed from facebook.

Using the Facebook PHP SDK I get these errors:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at {path}/wp-admin/includes/template.php:1698) in {path}/wp-content/plugins/{mypluginname}/facebook-php-sdk/src/facebook.php on line 48

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at {path}/wp-admin/includes/template.php:1698) in {path}/wp-content/plugins/{mypluginname}/facebook-php-sdk/src/facebook.php on line 48

Using the Facebook PHP SDK from the Wordpress plugin I get this error:

Fatal error: Access to undeclared static property: WP_BaseFacebook::$CURL_OPTS in {path}/wp-content/plugins/{pluginname}/facebook-php-sdk/src/base_facebook.php on line 932

My server is running Linux, PHP 5.3 I believe. CURL is enabled on my server.

I any

In case others were wondering, what i had to do to correct this error i added the following:

<?php session_start(); ?>

That was pretty much it.