Facebook-style Statuses provides a Share page to quickly and easily post status updates. This page is at http://example.com/share-status and allows people browsing other sites to easily post links to your site via their status. The text that will appear in the status goes in the 's' or 'share-status' query string in the URL. For example, the URL http://example.com/share-status?share-status=is%20happy would pre-fill (but not submit) the status update textfield with the text "is happy." (With Facebook Mode on, the resulting status would be similar to "Joe is happy").

Other Parameters

In addition to s/share-status, you can also add other parameters to the query to change the appearance of the form that appears on the page. For example, you can set rsid=[STATUS ID] to make text above the form appear that says "In response to [STATUS TEXT]." There is also the sid parameter, which takes a status ID and pre-fills the status form with text determined from the re-post template in the module's settings (ignoring the s, share-status, and rsid parameters). If you set the destination parameter, a "Back" link will appear beneath the form to allow users to return to where they were before posting the status.

All of these parameters work on any other page that has a status update form as well. (The exception is the 's' parameter, since other modules might use it; use 'share-status' instead.)

Bookmarklet

This JavaScript code, when executed as a bookmark, will allow people to post the page they're viewing to their status on your site without needing a link on the site they're viewing. Note that some browsers (most importantly Internet Explorer) will warn users before saving a JavaScript bookmark. In some browsers you can put this code in the "href" property of a link and users can simply click-and-drag to their Bookmark/Favorites list; in others they will need to copy-and-paste it.

Be sure to replace example.com with your website URL.

javascript:void(location.href='http://example.com/share-status?share-status='+escape(document.title)+' '+escape(location.href)+' '+escape(window.getSelection()))

If you're having problems in some browsers, try replacing the space with the URL-encoded space symbol, %20.

In Depth

Let's look at the parts of this so you can change it if you want:

This tells the browser to open a new window with your desired URL in it.

location.href='http://example.com/share-status?share-status='

This safely inserts the title of the current page into the status.

escape(document.title)

This safely inserts the URL of the current page into the status.

escape(location.href)

This safely inserts any text that the user had selected in the current page into the status. Does not work in Internet Explorer.

escape(window.getSelection())

If you find that your bookmarklet consistently produces text that is too long to fit in the status update textfield, you can increase the amount of characters that is allowed up to 21844. However, note that if you increase the maximum status length beyond 140 characters, users who use FBSS to post to Twitter could find that their tweets are inadvertently cut off.

Extras

If you have the Facebook-style Micropublisher module installed, you will have extra URL parameters available to pre-fill the attachments form. You can read more about how to do that in the FBSMP documentation.