bufferapp/facebook-api-wrapper
最新稳定版本:2.5.0
Composer 安装命令:
composer require bufferapp/facebook-api-wrapper
包简介
A PHP SDK for the Facebook API
README 文档
README
As of May 6th, 2025, this library is deprecated and no new changes will be applied.
facebook-api-wrapper
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.
统计信息
- 总下载量: 17.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-06-21