bufferapp / facebook-api-wrapper
A PHP SDK for the Facebook API
Installs: 16 731
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 25
Forks: 7
Open Issues: 1
Type:package
Requires
- php: >=7.4
- nickdnk/graph-sdk: ^7.0
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5.27
- dev-master
- 2.3.0
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.x-dev
- 1.8.8
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4
- 1.3
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.0
- dev-EPD-454/upgrade-facebook-marketing-api-to-version-15
- dev-dependabot/composer/mockery/mockery-1.3.1
- dev-task/add-unsubscribe-method
This package is auto-updated.
Last update: 2025-03-09 11:57:48 UTC
README
Buffer's Facebook PHP API wrapper
Our FB API wrapper library provides helpful utility methods to work with FB Graph API.
Methods supported in the wrapper:
setAccessToken($accessToken)
getPageInsightsMetricsData($pageId, $insightsMetrics, $since, $until)
getPagePostGraphMetricsData($pageId, $postId, $metrics)
getPageBatchPostsGraphMetricsData($postIds, $metrics)
getPagePostInsightsMetricData($pageId, $postId, $insightsMetrics)
getPageBatchPostsInsightsMetricData($postIds, $insightsMetrics)
getPagePosts($pageId, $since, $until, $limit = 100)
Requirement & Installation
This package requires PHP 5.6 or higher.
Open your composer.json file and add the new required package.
"bufferapp/facebook-api-wrapper": "^1.0.0"
Next, open a terminal and run.
composer update
Now you can reference the wrapper anywhere as use Buffer\Facebook\Facebook;
.
Tests
Before running the tests make sure you have installed all the dependancies with
composer install
.
The tests can be executed by using this command from the base directory:
bin/phpunit -c phpunit.xml --bootstrap vendor/autoload.php
Contributing
You're welcome to contribute to this repo.
Did you find a bug?
If you found a bug then please go ahead and open a GitHub issue, and we'll try to fix it as soon as possible.