WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
[resolved] Minum PHP version for using version 1.0 of the class included in this plugin (3 posts)

  1. nicola.peluchetti
    Member
    Posted 1 year ago #

    Hi,

    i'm using the class included in this plugin inside my plugin. We renamed the class to avoid conflicts. What i was wondering is: what is the minum PHP version for this class to work?

    When i call

    $user = $facebook->getUser();

    i always get back nothing on an install with PHP 5.2.17 and if i use firebug to output the instance of the class i get

    Facebook_WP_Extend_Ai1ec(
    kSupportedKeys =
    Need PHP 5.3 to get value
    DROP_QUERY_PARAMS =
    Need PHP 5.3 to get value
    DOMAIN_MAP =
    array(
    
    ['api'] =>
    'https://api.facebook.com/'
    ['api_video'] =>
    'https://api-video.facebook.com/'
    ['api_read'] =>
    'https://api-read.facebook.com/'
    ['graph'] =>
    'https://graph.facebook.com/'
    ['graph_video'] =>
    'https://graph-video.facebook.com/'
    ['www'] =>
    'https://www.facebook.com/'
    )
    appId =
    xxx
    appSecret =
    'xxx'
    user =
    signedRequest =
    NULL
    state =
    '45ccea945634fb4c98335b7dcb9dec96'
    accessToken =
    '230498423718200|7a87eb62bb2676da5a6324be0299beb7'
    fileUploadSupport =
    FALSE
    )

    which hints to the fact that 5.3 is required. Is it true?On other installs with the same app_id/secret everything is working as expected

    http://wordpress.org/extend/plugins/facebook/

  2. Niall Kennedy
    Member
    Plugin Author

    Posted 1 year ago #

    The output you included is from the Facebook PHP SDK, bundled with the Facebook plugin for WordPress.
    https://github.com/facebook/facebook-php-sdk/blob/master/src/base_facebook.php#L140

  3. nicola.peluchetti
    Member
    Posted 1 year ago #

    Hi,

    Yes, in our plugin i needed to make calls to Facebook and so i took the class included in this plugin, i renamed it and used it. Now i have the problem stated above and i was wondering if it was related to php version

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.