Hi,
Great module. Works like a charm.
I was wondering how I would go about changing the text that is prefilled into the Linkedin share-box.
Right now, the node title is taken as a title and (in my case) the third paragraph of my body field is taken as body. (weird)

I was wondering where I would change this?
I've already found this function in easy_social.widgets.inc

function _easy_social_widget_linkedin_markup($url, $type, $title = NULL, $lang = 'und') {
  // this widget doesn't yet offer a localization option
  // correct for different language identification strings
//  if ($lang === 'en') {
//    $lang = 'en_US';
//  }
  // @TODO use "data-onsuccess" to track successful shares
  // this will likely be in either a seperate module or a new version

  $type = ($type == EASY_SOCIAL_WIDGET_HORIZONTAL) ? 'right' : 'top';
  $markup = <<<LI
<script type="in/share" data-url="{$url}" data-counter="{$type}"></script>
LI;
  return $markup;
}

I'm guessing the "LI" is a parameter that is being filled somwhere else, but I cannot find where ...

thanx

Comments

MediaFormat’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

The text in the share box is scraped rather arbitrarily by linkedin.

To explicitly state which info LinkedIn should use requires configuring Open Graph tags, see the Metatag module.