Copied to clipboard

Flag this post as spam?

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


  • Bjarne Fyrstenborg 1281 posts 3991 karma points MVP 7x c-trib
    Jul 10, 2011 @ 17:00
    Bjarne Fyrstenborg
    0

    Define content to share with AddThis

    Hi

    I am using AddThis to share content from this site, e.g. under News: http://oldengaard.dk/da/nyheder/unge-ryttere-til-hest-skal-have-mentale-vaerktoejer.aspx

    But e.g. the Facebook button will as standard use the page title and some of the first text in code as description. Does someone know how I can change the title and description to use my news item title and description?

    Bjarne

  • Bjarne Fyrstenborg 1281 posts 3991 karma points MVP 7x c-trib
    Jul 10, 2011 @ 17:19
    Bjarne Fyrstenborg
    0

    I have this in my template:

    <!-- AddThis Button BEGIN -->
      <div class="addthis_toolbox addthis_default_style ">
        <class="addthis_button_facebook" title="Send til Facebook"></a>
        <class="addthis_button_twitter" title="Tweet dette"></a>
        <class="addthis_button_favorites" title="F&oslash;j til favoritter"></a>
        <class="addthis_button_email" title="E-mail"></a>
        <class="addthis_button_print" title="Udskriv"></a>
        <class="addthis_button_compact"></a>
        <class="addthis_counter addthis_bubble_style" title="Se flere servicer"></a>
      </div>
      <script type="text/javascript">
        var addthis_config =
        {
           ui_language"da",
           ui_cobrand"Oldengaard.dk"
        }
      </script>
      <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4dcd1479756966b9"></script>
      <!-- AddThis Button END -->
  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jul 11, 2011 @ 18:20
    Jan Skovgaard
    0

    Hi Bjarne

    If I remember correctly you should be able to control the values FB is using by adding this meta tag
    <meta property="og:tag name" content="tag value"/>

    Read further instructions here: http://developers.facebook.com/docs/reference/plugins/like/

    Hope this helps!

    /Jan

  • Bjarne Fyrstenborg 1281 posts 3991 karma points MVP 7x c-trib
    Jul 11, 2011 @ 19:13
    Bjarne Fyrstenborg
    0

    Hi Jan

    I'm not sure that the AddThis buttons are exactly as the FB like button..

    I have taken a look at the customization of the AddThis buttons http://www.addthis.com/help/url-and-title ,  but it didn't seem to work with the alternative title and description.

    If you look at oldengaard.dk, the link I posted in the first comment, there are some random quotes before the content people might want to share. And it use there quotes as description, probably before it's placed earlier in the code. But it doesn't make much sense to share these quotes in this case.

    Bjarne

  • Bjarne Fyrstenborg 1281 posts 3991 karma points MVP 7x c-trib
    Jul 11, 2011 @ 20:41
    Bjarne Fyrstenborg
    0

    Well, it doesn't seem to that the addthis:url, addthis:title and addthis: description work with the FB button.
    But there is another way of doing it:

    <a href="http://api.addthis.com/oexchange/0.8/forward/facebook/offer?swfurl=http://www.example.com/test.swf&url=http://www.example.com&title=My Custom Title&description=My Custom description that will go here&height=1&width=1&screenshot=http://t0.gstatic.com/images?q=tbn:1Xot2cGj_zPGMM" target="_blank">Facebook</a>

     code from: http://www.addthis.com/forum/viewtopic.php?f=3&t=24410

    But without changing anything it seems to that Facebook after som time has detected the right content from the pages to share. Before it used the quotes as description, but now it uses the right content as description.

    Bjarne

Please Sign in or register to post replies

Write your reply to:

Draft