{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/433","labels_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/433/comments","events_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/433/events","html_url":"https://github.com/facebook/facebook-php-sdk-v4/issues/433","id":77250269,"number":433,"title":"`require __DIR__` in README.md causes misunderstanding","user":{"login":"unarist","id":705555,"avatar_url":"https://avatars.githubusercontent.com/u/705555?v=3","gravatar_id":"","url":"https://api.github.com/users/unarist","html_url":"https://github.com/unarist","followers_url":"https://api.github.com/users/unarist/followers","following_url":"https://api.github.com/users/unarist/following{/other_user}","gists_url":"https://api.github.com/users/unarist/gists{/gist_id}","starred_url":"https://api.github.com/users/unarist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unarist/subscriptions","organizations_url":"https://api.github.com/users/unarist/orgs","repos_url":"https://api.github.com/users/unarist/repos","events_url":"https://api.github.com/users/unarist/events{/privacy}","received_events_url":"https://api.github.com/users/unarist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-17T08:08:51Z","updated_at":"2015-05-17T14:27:41Z","closed_at":null,"body":"```php\r\n// Skip these two lines if you're using Composer\r\ndefine('FACEBOOK_SDK_V4_SRC_DIR', '/path/to/facebook-php-sdk-v4/src/Facebook/');\r\nrequire __DIR__ . '/path/to/facebook-php-sdk-v4/autoload.php';\r\n```\r\n\r\nIs `/path/to/facebook-php-sdk-v4/` absolute path or relative path?\r\n\r\nI think `__DIR__` should be used in both or none of `define` and `require`.\r\n\r\nThere is same example in https://developers.facebook.com/docs/php/gettingstarted/4.0.0 ."},"comment":{"url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/comments/102807822","html_url":"https://github.com/facebook/facebook-php-sdk-v4/issues/433#issuecomment-102807822","issue_url":"https://api.github.com/repos/facebook/facebook-php-sdk-v4/issues/433","id":102807822,"user":{"login":"SammyK","id":578780,"avatar_url":"https://avatars.githubusercontent.com/u/578780?v=3","gravatar_id":"","url":"https://api.github.com/users/SammyK","html_url":"https://github.com/SammyK","followers_url":"https://api.github.com/users/SammyK/followers","following_url":"https://api.github.com/users/SammyK/following{/other_user}","gists_url":"https://api.github.com/users/SammyK/gists{/gist_id}","starred_url":"https://api.github.com/users/SammyK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SammyK/subscriptions","organizations_url":"https://api.github.com/users/SammyK/orgs","repos_url":"https://api.github.com/users/SammyK/repos","events_url":"https://api.github.com/users/SammyK/events{/privacy}","received_events_url":"https://api.github.com/users/SammyK/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T14:27:41Z","updated_at":"2015-05-17T14:27:41Z","body":"Good point. It's absolute but you can use a relative path if you like."}}