Example #1
0
function registerWithFacebook()
{
    global $LOG;
    $url = "https://graph.facebook.com/oauth/authorize?client_id=" . Config::getFacebookConsumerKey() . "&redirect_uri=http://jittr.com/jittr/gameon/gologin.php?oauth=yes&scope=user_photos,user_videos";
    if (Config::getDebug()) {
        $LOG->log("in registerWithFacebook - calling url = " . $url);
    }
    header("Location:" . $url);
}