sglitowitzsoci / facebook-php-business-sdk-guzzle-adapter

A Guzzle adapter for the Facebook PHP Business SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook PHP Business SDK Guzzle Adapter

Install

composer require samlitowitz/facebook-php-business-sdk-guzzle-adapter

Use

Api::init(
	self::APP_ID,
	self::APP_SECRET,
	self::PAGE_ACCESS_TOKEN
);
$facebookClient = Api::instance()->getHttpClient();
$guzzleClient = new Client();
Api::instance()->getHttpClient()->setAdapter(new GuzzleAdapter($facebookClient, $guzzleClient));
$page = new Page(self::PAGE_ID);

$page->getSelf();
$this->assertEquals(self::PAGE_ID, $page->{PageFields::ID});

About

A Guzzle adapter for the Facebook PHP Business SDK

License:Apache License 2.0


Languages

Language:PHP 100.0%