Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/armetiz/armetizfacebookbundle
A simple bundle to expose Facebook SDK
https://github.com/armetiz/armetizfacebookbundle
Last synced: about 1 month ago
JSON representation
A simple bundle to expose Facebook SDK
- Host: GitHub
- URL: https://github.com/armetiz/armetizfacebookbundle
- Owner: armetiz
- License: mit
- Created: 2012-09-18T14:57:27.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-12-19T14:52:03.000Z (almost 11 years ago)
- Last Synced: 2023-08-21T08:02:24.789Z (about 1 year ago)
- Language: PHP
- Size: 160 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
ArmetizFacebookBundle
=====================A simple bundle to expose Facebook SDK.
## Usage example
```php
get("armetiz.facebook");
$facebookSdk->setAccessToken($facebookToken);
$userProfile = $facebookSdk->api('/' . $facebookId, 'GET');
}}
?>
```## Installation
Installation is a quick 3 step process:
1. Download ArmetizFacebookBundle using composer
2. Enable the Bundle
3. Configure your application's config.yml### Step 1: Download ArmetizFacebookBundle using composer
Add ArmetizFacebookBundle in your composer.json:
```js
{
"require": {
"armetiz/facebook-bundle": "*"
}
}
```Now tell composer to download the bundle by running the command:
``` bash
$ php composer.phar update armetiz/facebook-bundle
```Composer will install the bundle to your project's `vendor/armetiz` directory.
### Step 2: Enable the bundle
Enable the bundle in the kernel:
``` php
get("armetiz.facebook.myApplicationA");
$facebookSdkB = $this->get("armetiz.facebook.myApplicationB");
$facebookSdkA->setAccessToken($facebookToken);
$facebookSdkB->setAccessToken($facebookToken);$userProfileFromA = $facebookSdkA->api('/' . $facebookId, 'GET');
$userProfileFromB = $facebookSdkB->api('/' . $facebookId, 'GET');
}}
?>
```