fbvendor / grathapi
he Graph API is the primary way for applications to read and write Facebook social graph data. All of our SDKs and products interact with the Graph API. The rest of our APIs are extensions of the Graph API
dev-main
2022-03-14 14:30 UTC
Requires
- php: >=7.1
This package is auto-updated.
Last update: 2025-06-14 22:09:35 UTC
README
This repository contains the open source that allows you to access the Facebook Platform from your Laravel app;
1.The package can be installed with Composer. Run this command:
composer require fbvendor/grathapi
2.Publish the public assets:
php artisan vendor:publish --provider="Fbvendor\\Grathapi\\Providers\\FbpublishesServiceProvider"
-
add variable to .env
- FBTOKEN='token'
- FCACCAUNT='Id'
Note: This version of the Facebook analytics for PHP requires PHP 7.1 or greater.
Simple GET example of a page profile.