Clarify facebook share button

Created on 20 April 2012, over 13 years ago
Updated 15 July 2025, about 2 months ago
function module_easy_social_widget() {
  return array(
    'facebook_share' => array(
      'name' => 'Facebook Share', // apears on admin pages only
      'markup' => '_module_widget_facebook_share_markup', // callback function that returns widget markup
      'scripts' => array(
        array(
          'path' => 'http://static.ak.fbcdn.net/connect.php/js/FB.Share', // javascript include,
          'type' => 'external', // 'external', 'module' or 'inline', defaults to 'external'
        ),
      ),
    ),
  );
}

function _module_widget_facebook_share_markup($url, $type, $title = NULL, $lang = 'en') {

  $markup = <<<FB
  <div style='float:right;margin-left:10px;margin-bottom:10px;'>
    <a name="fb_share" type="box_count" href="{$url}">Share</a>
  </div>
FB;
  return $markup;
}
💬 Support request
Status

Closed: outdated

Version

2.0

Component

User interface

Created by

🇨🇦Canada jibran Toronto, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • heddn Nicaragua

    Drupal 7 is no longer formerly supported. Just cleaning up the issue queue. If this is something that still exists in the modern drupal version, feel free to re-open and provide some notes.

Production build 0.71.5 2024