开发者

External Facebook connect site using multi friend invite, looses existing cakephp session

开发者 https://www.devze.com 2022-12-14 17:16 出处:网络
I have a facebook connect site.I am able to \"login\" to my site with the facebook api & fbml.I would 开发者_C百科like to give my users the ability to invite friends.I am using the multi invite an

I have a facebook connect site. I am able to "login" to my site with the facebook api & fbml. I would 开发者_C百科like to give my users the ability to invite friends. I am using the multi invite and the form shows up fine.

My problem is once the user either invites or cancels on the page, the request back to my application from facebook, causes a new session to be started.

In the appcontroller's beforeFilter, I have tried to use the facebook session id as my cakephp application's session id, and on return from facebook, use session_id($id) to force to use the user's existing session. However, when session_start() is finally called, a new session id is assigned every time.

Anyone out there implemented cakephp connect website that uses the multi invite.

Note: this is an external application website, no canvas page wanted.


shot in the dark, but what's your security setting? if it's high, try medium. then perhaps your session key won't reset on a subsequent page load.


Old thread, but I fix the same issue putting security in low

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号