Topic-icon Facebook Share not working on k2 items

Active Subscriptions:

None
Hi,

All enabled social share accounts are working expect Facebook even i have enabled it for K2 item and disabled the fb like button but not showing on frontend .

Check here:--

projectmanagementpractices.com/index.php.../item/270-practice-1

Screenshot of Settings for the Social Share:--
screencast.com/t/XCNXANb7

Thanks
The topic has been locked.
Support Specialist
11 years 6 months ago #49521 by mel
In the Social content area, the Facebook Share button currently only works if the Like button is also enabled.

If you'd like to work around this right now, you can edit the /plugins/content/jfbccontent/jfbccontent.php around line 256, you will see the following code:
if($showFacebook)
   $likeText = '{JFBCLike layout=' . $buttonStyle . ' show_faces=' . $showFaces . ' share=' . $showShareButton
      . $widthField . ' action=' . $verbToDisplay . ' font=' . $font
      . ' colorscheme=' . $colorScheme . ' href=' . $url . $renderKeyString . '}';
else
   $likeText = '';

You can replace the last line of that code "$likeText = '';" with:
{
   if($buttonStyle == 'standard' || $buttonStyle == 'button')
      $style = 'button';
   else if($buttonStyle == 'box_count')
      $style = 'box_count';
   else
      $style = 'button_count';
   $likeText = '{JFBCShare layout=' . $style . $widthField . ' href=' . $url . $renderKeyString . '}';
}

See if that works for you and I can create an issue in our tracker to add in a future release.

-Melissa
The topic has been locked.