Skip to content
Yii Facebook Api Wrapper Component
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
FacebookComponent.php
README.md

README.md

Facebook API Wrapper for Yii

Yii Facebook Api Wrapper Component

Install

First of all you chould separately install Facebook SDK. You can find it here: https://github.com/facebook/facebook-php-sdk. SDK should be copied into "protected/vendors/facebook" directory, but it may vary.

Component config:

'facebook' => array(
    'class' => 'ext.facebook.FacebookComponent',
    'sdkLocation' => 'application.vendors.facebook.src.facebook',

    'appId'  => '111111111111111',
    'secret' => 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',

    'messages' => array(
        'invite' => array(
            'message' => "Go sign up!",
            'picture' => '/images/logo.png',
            'link'    => array('site/index', 'from' => '[userId]'),
            'name'    => 'MyProject',
            'caption' => 'Join us',
        ),
    ),
),
Something went wrong with that request. Please try again.