This file contains hidden or 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
<?php | |
$session = new FacebookSession('access token here'); |
This file contains hidden or 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
<?php | |
$helper = new FacebookJavaScriptLoginHelper(); | |
try { | |
$session = $helper->getSession(); | |
} catch(FacebookRequestException $ex) { | |
// When Facebook returns an error | |
} catch(\Exception $ex) { | |
// When validation fails or other local issues | |
} | |
if ($session) { |
This file contains hidden or 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
<?php | |
$helper = new FacebookCanvasLoginHelper(); | |
try { | |
$session = $helper->getSession(); | |
} catch(FacebookRequestException $ex) { | |
// When Facebook returns an error | |
} catch(\Exception $ex) { | |
// When validation fails or other local issues | |
} | |
if ($session) { |
This file contains hidden or 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
<?php | |
$helper = new FacebookRedirectLoginHelper(); | |
try { | |
$session = $helper->getSessionFromRedirect(); | |
} catch(FacebookRequestException $ex) { | |
// When Facebook returns an error | |
} catch(\Exception $ex) { | |
// When validation fails or other local issues | |
} | |
if ($session) { |
This file contains hidden or 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
<?php | |
$helper = new FacebookRedirectLoginHelper('your redirect URL here'); | |
$loginUrl = $helper->getLoginUrl(); | |
// Use the login url on a link or button to redirect to Facebook for authentication |
This file contains hidden or 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
<?php | |
FacebookSession::setDefaultApplication('YOUR_APP_ID', 'YOUR_APP_SECRET'); |
This file contains hidden or 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
{ | |
"require" : { | |
"facebook/php-sdk-v4" : "4.0.*" | |
} | |
} |
This file contains hidden or 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
.content { | |
border-color: #3bbfce; | |
color: #2b9eab; | |
} |
This file contains hidden or 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
$blue: #3bbfce | |
.content | |
border-color: $blue | |
color: darken($blue, 9%) |
This file contains hidden or 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
$blue: #3bbfce; | |
.content { | |
border-color: $blue; | |
color: darken($blue, 9%); | |
} |