Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kristian 15 posts 35 karma points
    Nov 03, 2011 @ 13:27
    Kristian
    0

    Like button doesn't appear

    Hi,

    I have added the macro Like Button to page. But I can't see the like button or anything.

    Could you please assist

     

      <umbraco:Macro FacebookPageUrl="http://mywebpage.com/default.aspx" PluginWidth="400" PluginHeight="200" Layout="standard" ShowFaces="0" Action="like" Font="arial" ColorScheme="light" Ref="" IncludeScript="1" Alias="NWSFacebookLikeButton" runat="server"></umbraco:Macro>

     

    Regards Kristian

  • Jonathan Cohen 40 posts 115 karma points
    Nov 03, 2011 @ 20:21
    Jonathan Cohen
    0

    Hi Kristian,

    How do the source of the page look like when you run the page? Do you get any javascript errors?

    If I paste your Macro code in a template it works fine for me. It outputs the following:

    <script src="/scripts/NWS/FacebookSocialPlugins.js" type="text/javascript"></script>

    <div id="NWS_38125e86" class="NWS_FacebookLikeButton"></div>
    <script type="text/javascript">
    NWS_Obj = new Array();
    NWS_Obj[0] = 'http://www.facebook.com/plugins/like.php?locale=sv-SE&href=http://mywebpage.com/default.aspx&width=400&layout=standard&font=arial&show_faces=False&colorscheme=light&action=like&ref=&height=40';
    NWS_Obj[1] = 'NWS_38125e86';
    NWS_Obj[2] = 40;
    NWS_Obj[3] = 400;
    NWS_ALL[NWS_ALL.length] = NWS_Obj;
    </script>

    Do you have the "/scripts/NWS/FacebookSocialPlugins.js" also you need a

    <form id ="form1" runat="server">
    </form>

    on your page.

     

    Please come back if you solve it or if you have any other questions.

    /Jonathan

     

     

     

  • Jonathan Cohen 40 posts 115 karma points
    Nov 03, 2011 @ 20:30
    Jonathan Cohen
    0

    You can also paste

    <script src="/scripts/NWS/FacebookSocialPlugins.js" type="text/javascript"></script>

    in your page head if you do not want the form tags...

    /J

     

  • Kristian 15 posts 35 karma points
    Nov 07, 2011 @ 18:38
    Kristian
    0

    Thanks... I forgot to add the script file as I was working with a new Master.

    Now it worked fine!

    Thx again!

    Regards Kristian

  • keilo 568 posts 1023 karma points
    Oct 31, 2012 @ 02:48
    keilo
    0

    Hi Jonathan

    Is this package still applicable after the recent Facebook API changes?

    regards.

    alex

  • iku 41 posts 70 karma points
    Feb 20, 2013 @ 14:26
    iku
    0

    Hi,

    It seems, that I can't run it?

    How can I get in into the template page.

  • iku 41 posts 70 karma points
    Feb 20, 2013 @ 14:44
    iku
    0

    is there a description?

  • shine 43 posts 83 karma points
    May 30, 2013 @ 12:52
    shine
    0

    Hello Jonathan

     

    I have some question regarding this package can you please revert back to me

Please Sign in or register to post replies

Write your reply to:

Draft