Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
Testing commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyDuBois committed Mar 20, 2016
1 parent 2a187cb commit 9cc0a73
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/dfp/controller/Facebook.php
Expand Up @@ -89,7 +89,7 @@ public function accessToken() {

try {
// Returns a `Facebook\FacebookResponse` object
$response = $this->fb->get('/me?fields=id,name', $accessToken);
$response = $this->fb->get('/me?fields=name', $accessToken);
} catch (FacebookResponseException $e) {
throw new Exception('Graph returned an error: ' . $e->getMessage());
} catch (FacebookSDKException $e) {
Expand All @@ -105,10 +105,16 @@ public function accessToken() {
}

public function getPosts() {
//$client = $this->fb->getOAuth2Client();
//$client
try {
$raw = $this->fb->get('/me/feed?fields=message&limit=3200');
} catch (FacebookResponseException $e) {
throw new Exception('Graph returned an error: ' . $e->getMessage());

} catch (FacebookSDKException $e) {
throw new Exception('Facebook SDK returned an error: ' . $e->getMessage());
}

return;
// commit for testing.
}

}

0 comments on commit 9cc0a73

Please sign in to comment.