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 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 用matlab 实现通信仿真
  • ¥15 按键修改电子时钟,C51单片机
  • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
  • ¥20 5037端口被adb自己占了
  • ¥15 python:excel数据写入多个对应word文档
  • ¥60 全一数分解素因子和素数循环节位数