Skip to content

Commit 6af17f9

Browse files
authored
Merge pull request facebookarchive#630 from SammyK/finish-581
Finishes off facebookarchive#581
2 parents df40085 + 440e577 commit 6af17f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Upgrading from v4.x? Facebook PHP SDK v5.x introduced breaking changes. Please [
2828
Simple GET example of a user's profile.
2929

3030
```php
31-
$fb = new Facebook([
31+
$fb = new \Facebook\Facebook([
3232
'app_id' => '{app-id}',
3333
'app_secret' => '{app-secret}',
3434
'default_graph_version' => 'v2.6',
@@ -42,14 +42,14 @@ $fb = new Facebook([
4242
// $helper = $fb->getPageTabHelper();
4343

4444
try {
45-
// Get the Facebook\GraphNodes\GraphUser object for the current user.
45+
// Get the \Facebook\GraphNodes\GraphUser object for the current user.
4646
// If you provided a 'default_access_token', the '{access-token}' is optional.
4747
$response = $fb->get('/me', '{access-token}');
48-
} catch(Facebook\Exceptions\FacebookResponseException $e) {
48+
} catch(\Facebook\Exceptions\FacebookResponseException $e) {
4949
// When Graph returns an error
5050
echo 'Graph returned an error: ' . $e->getMessage();
5151
exit;
52-
} catch(Facebook\Exceptions\FacebookSDKException $e) {
52+
} catch(\Facebook\Exceptions\FacebookSDKException $e) {
5353
// When validation fails or other local issues
5454
echo 'Facebook SDK returned an error: ' . $e->getMessage();
5555
exit;

0 commit comments

Comments
 (0)