2

这是我第一次集成 Facebook。我在 CI 上有一个站点,到目前为止,我主要使用 JS SDK。

所以我的问题是——一旦用户使用 FB 登录,你如何将他的身份和图片从一个页面保存到另一个页面?您是否在每个页面上都对 FB.api 的信息进行 JS 调用?或者您是否通过 PHP 将信息保存在会话变量中。(或者其他方式?)

我不确定通常的做法是什么。

4

1 回答 1

3

I use tank auth to accomplish this. It is an authentication library for codeigniter that can be used for fb_login too

tere are a couple sample projects on github with tutorials and code. this looks interesting, as it provides support for many of the popular networks,

you could just start a session and put their facebook data in it. Each page view you could have a helper that just checks to see if they have any facebook session data set

于 2012-12-18T16:16:02.937 回答