ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

links breaking for Facebook share

December 04, 2010 1:29pm

Subscribe [1]
  • #1 / Dec 04, 2010 1:29pm

    smlswhl

    10 posts

    Hi,
    I have tried several ways to try to share posts on Facebook and can get none of them to properly link back to the specific article (they all link back to the domain instead).  These are the ways I have tried:

    [removed]function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}[removed]<style> html .fb_share_button { display: -moz-inline-block; display:inline-block; padding:1px 20px 0 5px; height:15px; border:1px solid #d8dfea; background:url(<a href="http://static.ak.facebook.com/images/share/facebook_share_icon.gif">http://static.ak.facebook.com/images/share/facebook_share_icon.gif</a>?6:26981) no-repeat top right; } html .fb_share_button:hover { color:#fff; border-color:#295582; background:#3b5998 url(<a href="http://static.ak.facebook.com/images/share/facebook_share_icon.gif">http://static.ak.facebook.com/images/share/facebook_share_icon.gif</a>?6:26981) no-repeat top right; text-decoration:none; } </style> <a href="http://www.facebook.com/sharer.php?u={url_title_path=%27blog/entry%27}&t={title}%22rel=%22nofollow%22&gt" rel="noopener nofollow" class="fb_share_button" target="_blank">Share on Facebook</a>

    as well as LG Social Bookmarks (it is installed):

    {lg_social_bookmarks title="{title}" permalink="{url_title_path='blog/entry'}"}
        Enjoy this post? Share it with others.
        <ul>
          {social_sites}
            <li>
              <a href="http://{social_site_url}" title="Bookmark on: {social_site_name}">_            /themes/cp_global_images/lg_social_bookmarks/favicons/{social_site_img_url}_            <span>Share via {social_site_name}</span>_          </a>
            </li>
            {/social_sites} 
        </ul>
      {/lg_social_bookmarks}

    ANY help would be greatly appreciated!  Thanks.

    [Mod Edit: Moved to the CodeShare Corner forum]

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases