Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'sdk/autoload.php';
- use FacebookFacebookSession;
- use FacebookFacebookRedirectLoginHelper;
- FacebookSession::setDefaultApplication('<MY APP ID IS HERE>', '<MY APP SECRET IS HERE>');
- $helper = new FacebookRedirectLoginHelper('http://whispershare.co.za/dashboard');
- $loginUrl = $helper->getLoginUrl();
- try {
- $session = $helper->getSessionFromRedirect();
- } catch(FacebookRequestException $ex) {
- echo $ex;
- } catch(Exception $ex) {
- echo $ex;
- }
- if ($session) {
- echo 'yay';
- } else echo 'boo';
Add Comment
Please, Sign In to add comment