Adding a LIFF app

Add your web app to LIFF using the LINE Developers console or the LIFF server API. This topic explains how to add a LIFF app and describes the other operations you can perform with the console and the LIFF server API.

Before you begin

Make sure you have completed the following:

Adding a LIFF app from the console

1. Open the LIFF settings screen

Select the channel that you want to add a LIFF app and open the "LIFF" tab.

LIFF Console Tab

2. Add a LIFF app

  1. Click the "+Add" button.
  2. Enter the name of the LIFF app, view size, and endpoint URL.

You can add up to 30 LIFF apps on one channel.

LIFF Console Tab

LIFF Console Tab

Adding a LIFF app with the LIFF server API

To add a web app to LIFF using the LIFF server API, send an HTTP POST request to the /liff/v1/apps endpoint. Specify the web app URL and view size in the request. You cannot specify the name of the LIFF app.

You can add up to 30 LIFF apps on one channel.

curl -X POST https://api.line.me/liff/v1/apps \
-H "Authorization: Bearer {channel access token}" \
-H "Content-Type: application/json" \
-d '{
  "view":{
    "type":"full",
    "url":"https://example.com/myservice"
  }
}'

The LIFF app ID is returned on success.

{
  "liffId":"..........-........"
}

For more information, see Add LIFF app in the LIFF API reference documentation.

Opening the LIFF app

Use a URL scheme of the form line://app/{liffId} to open the LIFF app within LINE.

To pass additional information to the LIFF app, specify query parameters in the scheme. If line://app/{liffId}?key1=value1&key2=value2 is specified, ?key1=value1&key2=value2 is appended to the LIFF app URL.

Other operations

You can perform the following operations with the console and the LIFF server API in addition to adding LIFF apps.

With the console

You can perform the following operations in the "LIFF" tab in the console.

  • Update the settings of LIFF apps
  • Delete LIFF apps

With the LIFF server API

You can perform the following operations via the LIFF server API.

For more information, see the LIFF API reference documentation.