donglu7286 2011-06-29 14:03
浏览 68
已采纳

如何使用DannyBTran CodeIgniter Facebook库进行PHP FB登录

Currently I am using the CodeIgniter (CI) Library from DannyBTran

https://github.com/dannybtran/CI_Facebook

to tie together Facebook and a PHP application.

I have been playing around with many different FB Libraries to tether it together with PHP but where one has great explanations in one area, in the other areas I am completely lost. In this Library I don't understand how to do a FB Connect feature or find a way for a user to log in using Facebook and have their userid be carried over into the CI Library.

I have already looked over most of the Facebook Developer Pages and after a point get lost as well...

The documentation on the authentication page I understand

http://developers.facebook.com/docs/authentication/

But I don't know how to make that information I grab from the User logging in talk to the new CodeIgniter library.

Just as a reference point other Libraries I have tried implementing were

http://www.haughin.com/code/facebook/
-----------------
http://junal.wordpress.com/2008/01/20/a-sample-facebook-application-with-codeigniter/
-----------------
http://www.simpleprojectz.com/2008/10/facebook-codeigniter/
-----------------
http://www.allfacebook.com/facebook-connect-codeigniter-2009-05
  • 写回答

1条回答 默认 最新

  • dongxing2263 2011-06-30 18:40
    关注

    which type of application are you trying to do? Maybe you don't need to use that kind of library.

    Here you have a very simple model for CI that explains some stuff: http://www.dannyherran.com/2011/02/facebook-php-sdk-and-codeigniter-for-basic-user-authentication/ In my opinion, using Facebook PHP class directly is much easier.

    I don't quite understand if your problem is getting the information after logging in, or if it's to login. Please give us more information so we can help.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大