> For the complete documentation index, see [llms.txt](https://docs.v2.like.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.v2.like.co/developer/likecoin-button/html.md).

# Javascript CDN

Embed LikeCoin button by just including \<script> in your website

{% hint style="warning" %}
The documentation is designed for Liker Land and LikeCoin v2. For information on [3ook.com](https://3ook.com/) and LikeCoin v3, please visit [docs.3ook.com](https://docs.3ook.com) and [dao.like.co](https://dao.like.co/).
{% endhint %}

## Usage

1. Add the following `div` tag into the webpage at the position for embedding LikeCoin button:

`<div class="likecoin-embed likecoin-button" data-liker-id="{YOUR_LIKECOIN_ID}" data-href="YOUR_WEBPAGE_URL"></div>`

| Param             | Description                                    |
| ----------------- | ---------------------------------------------- |
| data-iscn-id      | Content's ISCN ID, overrides href and Liker ID |
| `data-liker-id`   | Creator's Liker ID                             |
| `data-liker-href` | Current content's canonical URL                |

Here, `data-liker-id` is required and refers to your Liker ID, where `data-href` is optional and refers to your page's canonical URL. If omitted, the SDK will use the current URL of the browser. It is suggested to always include a `data-href`

2\. Add the following `script` tag at the end of the `body` tag:

`<script src="https://static.like.co/sdk/v1/button.js"></script>`

### Sample HTML

{% code title="index.html" %}

```bash
<!DOCTYPE html>
<html lang="en">
<head>
    <title>LikeCoin button SDK demo</title>
</head>
<body>
<div class="likecoin-embed likecoin-button" data-liker-id="chungwu" data-href="https://docs.like.co/developer/likecoin-button/"></div>
<script src="https://static.like.co/sdk/v1/button.js"></script>
</body>
</html>

```

{% endcode %}

### Source Repository

<https://github.com/likecoin/likecoin-button-sdk>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.v2.like.co/developer/likecoin-button/html.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
