Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Facebook Login using PHP SDK 4.0.0 with additional permissions
// include code from
// 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