http://developers.facebook.com/docs/reference/plugins/send/

The Send Button allows your users to easily send your content to their friends. People will have the option to send your URL in an inbox message to their Facebook friends, to the group wall of any Facebook group they are a member of, and as an email to any email address. While the Like Button allows users to share your content with all of their friends, the Send Button allows them to send a private message to just a few friends.

The message will include a link to the URL specified in the send button, along with a title, image, and short description of the link. You can specify what is shown for the title, image, and description by using Open Graph meta tags.

Comments

Dabitch’s picture

subscribing.

volongoto’s picture

Subscribing...

edpaff’s picture

It's pretty easy to modify the existing 'Like' button to include the 'Send' button. If using the XFBML, we just need to add send="true" to the standard 'Like' button markup, eg:

<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like href="example.com" show_faces="true" width="450" send="true">
</fb:like>

Not sure which part of this module needs to be patched (if any) to include the option though.

Original code from: http://developers.facebook.com/blog/post/494

natts’s picture

You can manually add the send button to all your like buttons by editing the module's modules/fb_social_like/fb_social_like.module file, in the function theme_fb_social_like_widget($url), add the following variable to the $attrs array:

'send' => 'true'

If you're not PHP-proficient (so don't understand the above), someone can probably write a patch for this. Obviously the module should support this as an option (i.e. not hardcoded like this) in future.

Hope that helps.

tky’s picture

Hi, there
I used the hardcoded way natts provided to add the send button after the like button, it worked!
But every time I clicked the send button, it would just pop up a box with FB icon in it, which linked to http://www.facebook.com/common/invalid_request.php#

Does anyone has this problem while you use send button?

ferdi’s picture

Version: 6.x-6.x-dev » 6.x-1.x-dev

Added a new module for "send" plugin http://drupalcode.org/project/fb_social.git/commit/bba4127
And a "send" option for the facebook like widget http://drupalcode.org/project/fb_social.git/commit/a1c7876

thanks1

ferdi’s picture

Status: Active » Closed (fixed)