1

I have developed a web page as follow, would you please help me why this code does not work?

When i liked the page, alert in FB.Event.subscribe('edge.create' does not display!?

http://www.mandanemedia.com/freelancer/

<div >
  <div id='subscribe' style='padding:10px; background:#fff;'>
    <center>
      <img src="fbbutton.jpg" style="width:290px; height:88px;"/>
    </center>
<fb:like-box href="http://www.facebook.com/pages/MandaneMediacom/275554465891715" width="292" show_faces="true" border_color="#fff" stream="false" header="false"></fb:like-box>
    </center>
  </div>
</div>
<div id="fb-root"></div>
</body>
<script type="text/javascript">
window.fbAsyncInit = function() {
    FB.init({
        appId:'275554465891715',
        status:true,
        cookie: true, 
        xfbml: true 
        });
    FB.Event.subscribe('edge.create', function(response) {
        alert('You liked the URL: ' + response);
    });
  };
(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));

</script>
Dan
  • 681
  • 2
  • 11
  • 23
  • Please look into the _actual_ source code of your page – the code you’ve shown here is _not_ what’s in your page. – CBroe Nov 20 '12 at 10:39
  • sorry. I put it the original code now. i have spend around 4 hours!!! – Dan Nov 20 '12 at 11:02
  • This is still not the code as it is inside the page you mentioned. Please look into your browser’s error console. – CBroe Nov 20 '12 at 11:09

0 Answers0