Created
May 6, 2014 08:50
-
-
Save niraj-shah/ede247776c3e9e17ad2a to your computer and use it in GitHub Desktop.
Facebook Login using PHP SDK 4.0.0 with additional permissions
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
<?php | |
// include code from https://gist.github.com/niraj-shah/ab1c74ad83df172e6075 | |
// generate login url with scope, each permission as element in array | |
$loginUrl = $helper->getLoginUrl( array( 'email', 'user_friends' ) ); | |
// output login link | |
echo '<a href="' . $loginUrl . '">Login</a>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment