I am having trouble with this code:

<!DOCTYPE html>

<html xmlns:fb="http://ogp.me/ns/fb#">


<div id="fb-root"></div>
<script>(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>

<fb:like href="http://www.MyWebsite.com" send="false" layout="button_count" width="200" show_faces="false" font="verdana"></fb:like>



The problem is that when I login and click on the like button, it pops up something and then dissapears. The live page is here: http://www.awsomechat.comuv.com/fb_test.php

Recommended Answers

All 3 Replies

Anyone got an answer?

Member Avatar for LastMitch


Anyone got an answer?

The code you provided is related to javascript!

There's NO php in that code you provided! So that's why noone ask your question in PHP

Then my advice is that you should post this code in the javascript section!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.