Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace MyApp\Utils;
- use Facebook\Facebook;
- /**
- * @class FacebookRepository Our repository, containing commonly used queries
- */
- class FacebookRepository
- {
- /** @var Facebook */
- protected $fb;
- public function __construct()
- {
- $this->fb = new Facebook([
- 'app_id' => $_ENV['facebook.app_id'],
- 'app_secret' => $_ENV['facebook.app_secret'],
- 'default_graph_version' => $_ENV['facebook.version'],
- ]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement