- Display the login facebook button only to users that are NOT logged now with facebook.
仅向现在未使用 facebook 登录的用户显示登录 facebook 按钮。
- You must be more precise, you have a website OR a facebook application, some API functions works differently.
你必须更精确,你有一个网站或一个 facebook 应用程序,一些 API 函数的工作方式不同。
3.4.
3.4. The conflict is in your flow logic, you cannot login in your website a user that hasnt a registered account yet.
冲突在于您的流程逻辑,您无法在您的网站上登录尚未注册帐户的用户。
I suggest to get rid of the register, and use an auto-register and/or auto-login:
我建议摆脱注册,并使用自动注册和/或自动登录:
- user enter website
用户进入网站
- Is NOT logged on facebook - show login to facebook button, return here after he logins
未登录 facebook - 显示登录 facebook 按钮,登录后返回此处
- is logged on facebook - show your own login button into site (you can auto-login as well, if you find his email address in your database, and he previous accepted your application).
已登录 facebook - 在网站上显示您自己的登录按钮(如果您在数据库中找到他的电子邮件地址,并且他之前接受了您的申请,您也可以自动登录)。
- he press the login
他按下登录
- you check if is in database, login, if not - register, then login in the same request.
你检查是否在数据库中,登录,如果不是 - 注册,然后在同一个请求中登录。