Facebook SDK v4 for PHP Minimal Example

前端 未结 8 969
夕颜
夕颜 2020-12-02 14:44

I\'m trying to get the minimal example

using Facebook\\FacebookSession;

FacebookSession::setDefaultApplication(\'YOUR_APP_ID\',\'YOUR_APP_SECRET\');

// Use         


        
8条回答
  •  春和景丽
    2020-12-02 15:43

    I solved it. Just use following line at the top of your script:

    define('FACEBOOK_SDK_V4_SRC_DIR', __DIR__ . '/facebook-php-sdk-v4/src/Facebook/');
    

    and you are done.

提交回复
热议问题