EDIT: for the canvas url insert the index.html with "?" like index.html?, mine works with /index.php?
and someone will find it useful for this problem:
when you open your index.html, you need the permission of the user to use some information of the user... in other way, facebook need to know what will do your app with the user information...
when you make a facebook app, you need to edit your index.html with some code of php.
Save your index.html in index.php, and add this code before the "<!DOCTYPE html>"
-------------------------
<?php
session_start();
require 'client/facebook.php'; ///API OF FACEBOOK
$app_id = "***************"; ///INSERT YOUR...
$secret = "****************"; ///INSERT YOUR...
$app_url = "URL OF YOUR APP"; ///INSERT YOUR...
// Create our Application instance
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $secret,
));
// Get User ID
$user = $facebook->getUser();
//Do we have a user?
if(!$user) {
$loginUrl = $facebook->getLoginUrl(array('scope'=> 'offline_access', 'read_insights', 'publish_stream', 'user_about_me', 'user_likes', 'email','redirect_uri'=> $app_url));
echo "<script type='text/javascript'>top.location.href = '$loginUrl';</script>";
} else {
try{
?//Proced knowing you have a logged in user who's autenticated
?$user_profile = $facebook->api('/me');
?$name = $user_profile['name'];
?$id = $user_profile['id'];
?$first_name = $user_profile['first_name'];
?$last_name = $user_profile['last_name'];
?$link = $user_profile['link'];
?$username = $user_profile['username'];
?$gender = $user_profile['gender'];
?$locale = $user_profile['locale'];
?$email = $user_profile['email'];
?
?
} catch (FacebookApiException $e) {
?echo ($e);
?$user = null;
}
}
?>
-----------------------
you don't need all of this code in your case, but if you insert this maybe will work... I achieved this when I need to save the information in my database with the php... with this, you don't need the plugin of facebook, because you can get some data from the AJAX.
let me know if you resolve the problem, now I not have so much time to reply and I don't speak english very well