I am using Facebook API for login with Facebook on my codeigniter app. It seems to be working fine except when the user is already logged in to Facebook but has never authorized my app. I redirect him to getLoginUrl() which should take him to authorize my app, but it never happens!
I am really lost and have been looking for solutions all around, any help would be appreciated
Here is my index function that is called on facebook login click:
$data=array( 'redirect_uri' => '/facebookcontroller/handle_facebook_login/', 'scope' => 'publish_stream,email' ); redirect($this->fbconnect->getLoginUrl($data)); And my redirect_uri is valid, I double checked.
So If the user is logged in, It will attempt to redirect him to getloginurl() which should take the user to authorize, but it doesn't. It goes straight to the redirect_uri.