on-internet
← Community

redirecting to a URL after facebook login

Stack Overflow ·

I am trying to redirect my page after successful login to a new url.. <?php include_once "fbmain.php"; $config['baseurl'] = "http://localhost:8080/index.php";; // login or logout url will be needed depending on current user state. if ($fbme) { $logoutUrl = $facebook->getLogoutUrl( array( 'next' => $config['baseurl'], ) ); } else { $loginUrl = $facebook->getLoginUrl( array( 'display' => 'popup', 'next' => $config['baseurl'] . '?loginsucc=1', 'cancel_url'=> $config['baseurl'] . '?cancel=1', 'req_perms' => 'email,user_birthday', ) ); } // if user click cancel in the popup window if (isset($_REQUE

Comments

Sign in or sign up to comment and upvote.

No comments yet.