?> <span> <?php echo FB::profile_pic(); ?> Welcome, <?php echo FB::name(array('useyou' => 'false')); ?> . You are signed in with your Facebook account. </span> <?php } else { ?> Name: <input name="name" size="27"/><br/> Or, you can <?php echo FB::login_button(array('onlogin' => 'update_user_box();', 'length' => 'long')); ?> <?php } ?> </div> <textarea name="comment" rows="5" cols="30"></textarea><br /> <input type="submit" value="Submit Comment"/> </form> <fb:comments title="Facbook Comments on my comments... lol"></fb:comments> </div> <script type="text/javascript"> function update_user_box() { var user_box = document.getElementById("user"); // add in some XFBML. note that we set useyou=false so it doesn't display "you"