I have this code which allows the user to update their fb status on my page:
<head>
<title>My Great Website</title>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js">
</script>
<script>
FB.init({
appId:'**', cookie:true,
status:true, xfbml:true
});
FB.ui({ method: 'feed',
message: 'Facebook for Websites is super-cool'});
</script>
</body>
It works fine but when the page loads it automatically shows the popup, but I want the box to only show when I press a button. Is this possible? I don’t see an option in the FB Documentation.
demo (“An error occurred. Please try again later.” is showing because I have wrong appID specified)