> For the complete documentation index, see [llms.txt](https://anticode.gitbook.io/templates/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anticode.gitbook.io/templates/plugins/bubble-share-text-plugin.md).

# Bubble - Share Text Plugin

### Overview

This plugin allows you to make a text within your webpage shareable just by highlighting the text. The highlighted portion of the text can then be shared via email, twitter, linkedin and optionally facebook (if you have a facebook app id). The plugin fetches the highlighted text, as well as the page title and the page url to share.

Note: this plugin does not work on mobile devices.

For a demo of this plugin please visit: <https://thesitebot.com/sharetextplugin>

### Instructions

1. Enable the option to add ID attributes to HTML elements by going to settings->general of your app.
2. Drag the "Share Text" Element onto your page. Choose the text where the effect should be applied and specify an unique id attribute in the element inspector.
3. Insert the same Id attribute into the Element ID field within the element inspector of the share text element.
4. (optional) If you want to enable Facebook sharing, check the "Facebook share" checkbox and enter the app id of your facebook app - <https://developers.facebook.com/>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://anticode.gitbook.io/templates/plugins/bubble-share-text-plugin.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
