Jump to content

help with facebook app.


misheck

Recommended Posts

I am trying to put a like and recommend button on my website but I have now only managed to get it to work with IE and not with firefox or flock. I need help with linking the js SDK locally rather than from the website and I am using the xml or fb so that my website speed will not be affected by the app.

 

I need to know how to load the javascript locally rather than from the website, I have downloaded the javascript SDK from the website but I dont know which file to link to. Here is a example I am trying to work on but its only working on IE and not other browsers.

 

I have tried to register to the facebook developer website but its not proceeding to the register section so I cannot post on the site to get help.

 

Here is the example I have tried

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:fb="http://www.facebook.com/2008/fbml">
      <script src="/xfbml/xfbml.js"></script>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>shout-africa</title>
  </head>
  <body>
    <h1>shout-africa</h1>
    
    <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        FB.init({appId: '122975394383945', status: true, cookie: true,
                 xfbml: true});
      };
      (function() {
        var e = document.createElement('script');
        e.type = 'text/javascript';
        e.src = document.location.protocol +
          '//connect.facebook.net/en_US/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>
    <fb:like href="www.shout-africa.com" layout="button_count" show_faces="true" width="10" action="like" colorscheme="light"></fb:like>
  </body>
</html>

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.