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

Facebook API Wrapper for Yii

Yii Facebook Api Wrapper Component


First of all you chould separately install Facebook SDK. You can find it here: 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.