Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created May 6, 2014 08:50

Revisions

  1. niraj-shah created this gist May 6, 2014.
    8 changes: 8 additions & 0 deletions fb_login_4.0.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <?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>';