Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php namespace MyApp\Utils;
  2.  
  3. use Facebook\Facebook;
  4.  
  5. /**
  6. * @class FacebookRepository Our repository, containing commonly used queries
  7. */
  8. class FacebookRepository
  9. {
  10. /** @var Facebook */
  11. protected $fb;
  12.  
  13. public function __construct()
  14. {
  15. $this->fb = new Facebook([
  16. 'app_id' => $_ENV['facebook.app_id'],
  17. 'app_secret' => $_ENV['facebook.app_secret'],
  18. 'default_graph_version' => $_ENV['facebook.version'],
  19. ]);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement