'Is it possible to send a custom parameter to FB getloginurl()?

Something like this, so that custom_param might be used upon redirect back to the app:

$params = array(
'scope' => 'email,publish_stream,user_photos,status_update',
'redirect_uri' => base_url(),
'custom_param' => 'bazinga',
);
        
// LOGGED OUT       
$auth_url = $this->facebook->getLoginUrl($params);

A simple yay or nay would be great if you have experience in this.



Solution 1:[1]

It's not really meant for this, but there is a state parameter you can pass that gets returned to you. See the documentation

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cpilko