dev-master
9999999-dev https://github.com/madurmanov/yii2-facebook-api-driverModule that enables send request to facebook api for Yii Framework 2.0.
MIT
The Requires
by Mikhail Durmanov
api social extension yii2 module facebook
Module that enables send request to facebook api for Yii Framework 2.0.
Module that enables send request to facebook api for Yii Framework 2.0., (*1)
composer require madurmanov/yii2-facebook-api-driver "@dev"
appID
and appSecret
parameters in module configuration$FacebookApiDriver = Yii::$app->getModule('FacebookApiDriver'); // link should be coincide with page url where function call var_dump($FacebookApiDriver->login('http://example.com', ['manage_pages', 'publish_pages']));
'modules' => [ 'FacebookApiDriver' => [ 'class' => 'madurmanov\FacebookApiDriver\Module', 'appID' => 0, 'appSecret' => 0, 'pageID' => 0, 'accessToken' => '' ] ]
$FacebookApiDriver = Yii::$app->getModule('FacebookApiDriver'); $FacebookApiDriver->request("/{$FacebookApiDriver->pageID}/feed", 'POST', [ 'message' => '' ], $FacebookApiDriver->getPageAccessToken($FacebookApiDriver->pageID));
yii2-facebook-api-driver is released under the MIT License. See the bundled LICENSE.md
for details., (*2)
Module that enables send request to facebook api for Yii Framework 2.0.
MIT
api social extension yii2 module facebook