查看: 1455|回复: 7
|
facebook login 的小问题 , 求助!感激!
[复制链接]
|
|
使用 fb login 在自己的网页的话 , 就像cari
普通member system 做法是 user post username 和 password 来验证 然后response cookies ..
facebook login 的话 没有password 我该如何验证和 response cookies 呢 ?
|
|
|
|
|
|
|
|
发表于 29-8-2013 10:03 PM
|
显示全部楼层
|
|
|
|
|
|
|

楼主 |
发表于 30-8-2013 02:03 AM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 5-9-2013 09:26 PM
|
显示全部楼层
Before creating FB login plugin, you need to create new apps in fb. This allows people to approve the permission from apps's request. The apps's request usually contain capturing email, full name or other info from fb user.
Refer: https://developers.facebook.com/ ... etting-started-web/
Install SDK in website -> Create New apps in FB -> Configure apps ID in code (refer instruction from the above URL) |
|
|
|
|
|
|
|

楼主 |
发表于 6-9-2013 12:13 AM
|
显示全部楼层
感谢hooiyijun
我已经做好了,有 apps id 也可以拿到登入者infomation 了
只是一般上我们自己的member system 都是会给个cookies (登入后) 来确认是本人访问 , 比如更新一些user information 的时候 .
那如果是 fb login 的话 我该怎样去判断是不是本人访问呢 ? |
|
|
|
|
|
|
|
发表于 6-9-2013 12:11 PM
|
显示全部楼层
keatkeat87 发表于 6-9-2013 12:13 AM 
感谢hooiyijun
我已经做好了,有 apps id 也可以拿到登入者infomation 了
只是一般上我们自己的member ...
把facebook 登入着资料放在自己的数据库,然后下次登入时进行对比
|
|
|
|
|
|
|
|

楼主 |
发表于 6-9-2013 06:11 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 25-9-2013 03:45 PM
|
显示全部楼层
每一個user 都有一個 auto increment ID 吧?那就設cookie/session 這個為 ID,對應 FB 給你的uid來判斷用戶 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|