T_RAVEN: Tak si zaloz aplikaci, neni to zadnej velkej boj :)
1) Vytvor si aplikaci na
https://developers.facebook.com/apps a nekam si zapis jej appId
2) V rootu svyho webu vytvor soubor
channel.html s obsahem
<script src="//connect.facebook.net/cs_CZ/all.js"></script>
3) Ten svuj facebook load, co jsi sem nahazoval, vymen za ten popsanej tady
https://developers.facebook.com/docs/reference/javascript/
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR_APP_ID', // App ID
channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
oauth : true, // enable OAuth 2.0
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/cs_cz/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
4) a je to hotovy, muzes si pridat <meta property="fb:app_id" content="
YOUR_APPLICATION_ID" />