<meta http-equiv=”Content-Language” content=”en-us”>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<meta name=”keywords” content=”cv”>
<meta name=”description” content=”FB analytics “>

<style type=”text/css”>
font-family: arial

<body topmargin=”0″ leftmargin=”0″ bgcolor=linen>
facebook app canvasm

The following snippet of code will give the basic version of the SDK where the options are set to their most common defaults. You should insert it directly after the opening <body> tag on each page you want to load it:

Include a script to let a person log into your app. It should automatically open the Login Dialog when someone first uses your app. Place the code right after the FB.init call.
// Place following code after FB.init call.

function onLogin(response) {
if (response.status == ‘connected’) {
FB.api(‘/me?fields=first_name’, function(data) {
var welcomeBlock = document.getElementById(‘fb-welcome’);
welcomeBlock.innerHTML = ‘Hello, ‘ + data.first_name + ‘!’;

FB.getLoginStatus(function(response) {
// Check login status on load, and if the user is
// already logged in, go directly to the welcome message.
if (response.status == ‘connected’) {
} else {
// Otherwise, show Login dialog first.
FB.login(function(response) {
}, {scope: ‘user_friends, email’});
Next let’s load your app within Facebook’s Canvas frame.