This is the info on Facebook Login button
http://developers.facebook.com/docs/guides/web/
So it will render a Login button, and a user can click on it to log in on Facebook (a log in window will pop up)
But after the user logs in, even though the Like or Share buttons work now, but the Log in button still shows.
1) Is there a way to redirect to a URL after the user successfully logs in?
2) Another way is to dynamically change the Log in button to invisible or better yet,
show it as "Logged in as [Peter (username)]"
How can (1) and/or (2) be done? (I don't see a callback URL in the Facebook app setting and also the redirection may need to go to different URL from page A or page B on the website)
Update: I found some info about <fb:login-button on-login="top.location = '...'; ">
but I see some website doing the redirect but there is no on-login='...'
question from:
https://stackoverflow.com/questions/5200167/how-to-let-facebook-login-button-redirect-to-a-particular-url 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…