This repository was archived by the owner on Jan 13, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Upgrading from v4.x? Facebook PHP SDK v5.x introduced breaking changes. Please [
2828Simple 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
4444try {
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;
You can’t perform that action at this time.
0 commit comments