Created
February 26, 2014 12:57
-
-
Save tfountain/9229049 to your computer and use it in GitHub Desktop.
Facebook SDK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function someAction() | |
{ | |
$facebook = $this->getServiceLocator()->get('Facebook'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getServiceConfig() | |
{ | |
return array( | |
'factories' => array( | |
'Facebook' => function($sm) { | |
$config = $sm->get('Config'); | |
$facebookConfig = isset($config['facebook']) ? $config['facebook'] : array(); | |
return new Facebook($facebookConfig); | |
}, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment