How to redirect to index.php after “login in using facebook connect”?

How to forward a website to another url?

Redirect to another web page using PHP.

Facebook redirect url to index.php

I try and get simple solution is bellow:


You could try into below config.php file.

$config['allow_get_array'] = TRUE;

$config['enable_query_strings'] = FALSE;

This is my controller and its work properly for me.

$myurl = "";

redirect($this->facebook->getLoginUrl(array('scope' => 'email', 'redirect_uri' => $myurl)));
If users facebook connect first time then after if it redirects to member.php then follow below:

Change the default redirect URL.
Open modules\boonex\facebook_connect\classes\BxFaceBookConnectConfig.php
Look for this line.
$this -> sDefaultRedirectUrl = BX_DOL_URL_ROOT . ‘member.php’;
Change in to this.
$this -> sDefaultRedirectUrl = BX_DOL_URL_ROOT . ‘index.php’;

About the Author