简体   繁体   中英

FaceBook Session not set inside controller In codeigniter

I'm trying to capture accesstoken of the facebook user.
the site url in the Fb application is " http://localhost/getinteraction ". I could capture access token. if the redirect url is http://localhost/getinteraction?state=5c604f9ee9096255830c6c7107....etc ..

But I need to redirect the return data to the controller in the codeignater..
ex: http://localhost/getinteraction/fbcontroller

in this point I could not capture the access token ..also

$user = $this->facebook->getUser() is false..

Session management of Codeigniter is the culprit here. Try changing the codeigniter sessions to database http://codeigniter.com/user_guide/libraries/sessions.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM