Forums / Craftwork / Bazaar / [Project] FaceBook Connect

Link Cotonti with FaceBook

Trustmaster
#21055 2009-11-19 17:20
There is an algorithm which explains how the basic fbconnect plugin works:
  1. If you are logged in Cotonti and FaceBook, it links your FaceBook account with your Cotonti account and provides plugin developers with connectivity objects.
  2. If you are logged in Cotonti but not FaceBook, you can use that button to link your FaceBook account as well.
  3. If you are registered with Cotonti and have a FaceBook account attached to your profile, you can use that button to log in quickly with FB, or use traditional login form as well.
  4. If you are not registered with Cotonti and have a FaceBook account, clicking that button and logging with FaceBook leads you to a registration form, where some fields have been already filled with data from your FaceBook account, so it saves time filling the form. After you submit the form, your account is validated automatically and you get logged in immediately.
  5. If you are logged in FaceBook but not Cotonti and have a Cotonti account with this FB account attached, Cotonti will log you in automatically. Unfortunately, there's currently no way to log out in this case, until you log out from FaceBook (there's a FB API bug).
  6. If you are logged in FaceBook but your Cotonti account exists with no FB ID yet, despite the fact you are redirected to registration form, you can use normal login and it will link your accounts then.
There are some bugs to fix and also some settings to add, so that this behavior is more configurable.
May the Source be with you!