Skip to content

Instantly share code, notes, and snippets.

@YOzaz
Last active October 13, 2015 13:31
Show Gist options
  • Save YOzaz/f0f8905392d328e3c6e3 to your computer and use it in GitHub Desktop.
Save YOzaz/f0f8905392d328e3c6e3 to your computer and use it in GitHub Desktop.
<?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'],
]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment