servicerunner / li3_facebook
Lithium Library for the Facebook API
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 27
Watchers: 2
Forks: 8
Open Issues: 0
Type:lithium-library
Requires
- composer/installers: *
- facebook/php-sdk: dev-master
This package is not auto-updated.
Last update: 2022-02-01 12:25:01 UTC
README
This Wrapper is a Lithium PHP Library using the official Facebook PHP SDK.
Thanks goes out to tmaiaroto for writing the original.
This fork builds on his work to provide Composer support and to remove all .gitmodules
.
Installation
*Note: You will need a Facebook API key/secret.
Load li3_facebook
by updating config/bootstrap/libraries.php
:
<?php // ... snip ... Libraries::add('li3_facebook', array( 'appId' => '', 'secret' => '', ));
To-Do
These official Facebook SDK Settings are currently not yet supported:
- cookie
- domain
- fileUpload
if you want to enable those Settings, you have to unset the validation:
li3_facebook\extension\FacebookProxy::$_validateConfiguration = false;
After Configuration you should able to use it via static calls or direkt method invoking:
static: li3_facebook\extension\FacebookProxy::getAppId($params)
or li3_facebook\extension\FacebookProxy::run('getAppId',$params)