Skip to content
Buffer's Facebook PHP API wrapper
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Facebook fix getAccounts endpoint May 8, 2019
bin Initial commit, add basic structure. Jun 20, 2017
tests fix getAccounts endpoint May 8, 2019
.editorconfig Add .editorconfig for consistency Jul 3, 2017
.gitignore
.travis.yml fix travis yaml file Mar 1, 2019
LICENSE Initial commit Jun 20, 2017
README.md
composer.json Remove version number from composer.json Jan 29, 2019
composer.lock
phpcs.xml Initial commit, add basic structure. Jun 20, 2017
phpunit.xml

README.md

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.

You can’t perform that action at this time.