Facebook SDK v4 for PHP Minimal Example

前端 未结 8 996
夕颜
夕颜 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:35

    just put this on include page:

    require DIR . '/path/to/facebook-php-sdk-v4/autoload.php';

    Also call the class before use, each time you need:

    use Facebook\FacebookSession;

提交回复
热议问题