# Invite Friends

## Overview

The Invite Friends feature is available in LINE Versions (LINE MINI App and LINE Login LIFF).\
This feature is one of the most important tools for **user acquisition** and **user activation**, helping your Unifi Apps grow organically within the LINE ecosystem.

Referrals play a key role in driving viral spread among LINE users.\
We strongly recommend implementing this feature to maximize visibility and user engagement.

## Invite Friends Support by Version

| Version         | Invite Friends | Notes                           |
| --------------- | -------------- | ------------------------------- |
| LINE MINI App   | Yes            | ShareTargetPicker supported     |
| LINE Login LIFF | Yes            | ShareTargetPicker supported     |
| Web             | No             | implement via referral URL copy |

## How to Implement (Using LIFF APIs)

To use the Invite Friends feature, refer to the following LIFF APIs:

* [Sending Messages](https://developers.line.biz/en/docs/liff/developing-liff-apps/#sending-messages)
* [ShareTargetPicket](https://developers.line.biz/en/docs/liff/developing-liff-apps/#share-target-picker)

### Restricting Message Targets

If you want to ensure that messages are sent **only to the user’s LINE friends**, and not to other Official Accounts or group chats, set:\
[options.isMultiple as false >](https://developers.line.biz/en/reference/liff/#share-target-picker-arguments)

```
options.isMultiple = false;
```

## **Example UI**

Below is an example of the “Invite a Friend” screen.

<figure><img src="/files/pimwPTRSW405nRicSbn0" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.unifi.me/unifi-apps/line-integration/invite-friends.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
