Skip to content

Commit

Permalink
Merge branch 'richard67-update-fb-graph-api-3.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
compeak committed May 27, 2019
2 parents 177bc03 + e32ab44 commit aaaa295
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Backend/Facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function setConfig(array $config)
public function getRequest($url)
{
$accessToken = urlencode($this->config['app_id']) .'|'.urlencode($this->config['secret']);
$query = 'https://graph.facebook.com/v3.2/?id='.urlencode($url) . '&fields=engagement&access_token='
$query = 'https://graph.facebook.com/v3.3/?id='.urlencode($url) . '&fields=engagement&access_token='
. $accessToken;

return new \GuzzleHttp\Psr7\Request('GET', $query);
Expand Down
2 changes: 1 addition & 1 deletion tests/FacebookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testUsesGraphApi()
$request = $facebook->getRequest('http://www.heise.de');

$this->assertEquals('graph.facebook.com', $request->getUri()->getHost());
$this->assertEquals('/v3.2/', $request->getUri()->getPath());
$this->assertEquals('/v3.3/', $request->getUri()->getPath());
$this->assertEquals(
'id='.urlencode('http://www.heise.de').'&fields=engagement&access_token=foo%7Cbar',
$request->getUri()->getQuery()
Expand Down

0 comments on commit aaaa295

Please sign in to comment.