Authenticate to Facebook without Clicking Facebook Connect Button -


i have added facebook connect application via javascript sdk. i'm using spring security (this grails app) , have added code when clicks fb connection button login, manually authenticate them against user account , gets wired appropriately. have 2 questions:

  1. when user first logs in fb , don't have account them, create account them fb info, generate random password, , use email login name. if user uses regular login form instead of fb button sign in, how sign them in fb well?

  2. every time user clicks fb connect button, popup window shows up. if authenticated, goes away , web site redirects correctly. how keep popup window showing in case?

thanks

to first question, user might connect on facebook when landing on page after registration. can rely on javascript sdk out.

see here: http://developers.facebook.com/docs/reference/javascript/fb.getloginstatus

to second question, think can't, except might work around if use javascript sdk mentioned first question!

this how did moviezine.se , works fine, might little irritating logged in without asking when come few days later. there use case of logout: if automatically logged in, automatically logged out too; , if not, if facebook session replaced girlfriend's 1 user on site! :)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -