SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation 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:

    Code:
    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:

    Code:
    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
    MYCFMX (Under Construction)
    http://www.mycfmx.com/

    More from me - coming soon

  2. #2
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    166
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In case others were wondering, what i had to do to correct this error i added the following:

    Code:
    <?php session_start(); ?>
    That was pretty much it.
    MYCFMX (Under Construction)
    http://www.mycfmx.com/

    More from me - coming soon


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •