Posts Tagged ‘Facebook Connect’
Currently i’m testing the features of Facebook Connect and i ran into troubles:
- how to display the login button only if a user has not connected
- how to display the image only if a user has connected
My simplest solution was to add some custom css classes:
- fb-connecting: when the status of facebook connect is not known. e.g. display a “connecting…” message
- fb-not-connected: when user is not connected to facebook. e.g. show connect button
- fb-connected: when user is connected to facebook. e.g. show user picture and name
View the demo page
Read the rest of this entry »
Tags: css, Facebook Connect, JavaScript