# Using LINE features with the LINE URL scheme
You can open Sticker Shop, LIFF app or camera with the LINE URL scheme. The LINE URL scheme works with LINE Official Accounts too. You can let users see LINE contents from rich menus with the action to open the LINE URL scheme.
Available LINE URL schemes are:
https://line.me/R/
https://liff.line.me/
line://
(Deprecated)
The scheme line://
is deprecated to prevent takeover attacks that launch a non-LINE app when the URL is clicked, against LY Corporation's or the user's intention. This attack can take place under certain conditions.
No exact date is set for the URL scheme line://
to become obsolete.
LY Corporation offers no URL scheme to launch native apps other than LINE. However, if a native app from another company has a URL scheme for launching the native app, you can use the URL scheme in the URI action object for rich menus or Flex Messages.
# What happens when a LINE URL scheme is clicked
When a user clicks a URL using the LINE URL scheme on a device with LINE installed, LINE is automatically launched showing the content specified by the URL. If LINE isn't installed, what happens differ by the scheme:
LINE URL scheme | What happens when there is no LINE installed |
---|---|
https://line.me/R/ | A web browser is launched and prompts the user to download LINE. |
line:// (Deprecated) | Nothing happens or the user is redirected to an error page. |
# Supported platforms
The LINE URL scheme is supported in LINE for iOS and LINE for Android.
The LINE URL scheme isn't supported in LINE for PC (macOS, Windows).
# Available LINE URL schemes
Things you can do with LINE URL schemes are as follows. The LINE URL schemes that are supported only in certain platforms are specified so in each section:
- Opening the camera and camera roll
- Sending location information
- Sharing a LINE Official Account
- Opening the LINE Official Account's LINE VOOM and profile
- Sending text messages
- Opening profile information
- Opening common LINE screens
- Opening LINE settings
- Opening Sticker Shop
- Opening Theme Shop
- Opening a LIFF app
- Opening a URL in an external browser
# Opening the camera and camera roll
With the LINE URL scheme, you can let users open the camera or the camera roll. Camera roll is where the users can select images to share in a chat.
You can open the camera or camera roll with the URL scheme only from LINE chats, including LINE OpenChat. These URL schemes aren't supported in LINE features other than chatting, LIFF apps or apps other than LINE.
LINE URL scheme | Description |
---|---|
https://line.me/R/nv/camera/ | Opens the camera. For smartphones that have multiple cameras, such as front (in-camera) and rear (out-camera), you can't specify which camera to open. |
https://line.me/R/nv/cameraRoll/single | Opens the camera roll. Users can select an image to share in a chat. |
https://line.me/R/nv/cameraRoll/multi | Opens the camera roll. Users can select images to share in a chat. |
# Sending location information
With the LINE URL scheme, you can open the location information screen and let users send their location information to your LINE Official Account.
You can let users view location information with this URL scheme only in one-on-one chats between the user and your LINE Official Account. This URL scheme isn't supported in other chat types, LIFF apps or apps other than LINE.
LINE URL scheme | Description |
---|---|
https://line.me/R/nv/location/ | Opens the location screen. Users can drop a pin on the map to select the location to share. |
# Sharing a LINE Official Account
With the LINE URL scheme, you can recommend and encourage users and their friends to add your LINE Official Account.
LINE URL scheme | Description |
---|---|
https://line.me/R/ti/p/{Percent-encoded LINE ID} | Opens the LINE Official Account's profile page. If the user is a friend with your LINE Official Account, a one-on-one chat is displayed instead. Note: On LINE versions earlier than v11.2.0, this URL scheme opens the "Add friends" screen for the LINE Official Account. |
https://line.me/R/nv/recommendOA/{Percent-encoded LINE ID} | Opens the "Share with" screen. Users can select friends, group chats, or multi-person chats to share your LINE Official Account with. |
Make sure {Percent-encoded LINE ID}
is percent encoded (opens new window) in UTF-8. For example, if the LINE ID is @linedevelopers
use https://line.me/R/ti/p/%40linedevelopers
and https://line.me/R/nv/recommendOA/%40linedevelopers
. If you replaced with the LINE ID that isn't percent encoded, it will also work, but is deprecated.
However, if you percent encode the LINE ID in the URL scheme that opens the "Share with" screen (https://line.me/R/nv/recommendOA/%40linedevelopers
), it won't work on LINE versions earlier than 13.8.0 for Android.
You can specify either a Basic ID or a Premium ID (opens new window) (only available in Japanese) as the LINE ID for your LINE Official Account.
Find the LINE ID of your LINE Official Account in LINE Official Account Manager (opens new window). For more information, see Share the LINE ID of your LINE Official Account.
When users open https://line.me/R/ti/p/{Percent-encoded LINE ID}
from a PC, they see the public URL of the LINE Official Account profile (e.g. LINE FRIENDS profile page (opens new window)) or only a QR code. What users see depends on these conditions:
- Your LINE Official Account is a verified account
- The public URL of the LINE Official Account profile is set to be available
If both conditions are met, users see the public URL of your LINE Official Account, with a QR code. If not, the user sees only the QR code for your LINE Official Account. You can adjust settings on LINE Official Account Manager (opens new window) to change an unverified account to a verified account, or to use the public URL of your profile.
# Opening the LINE Official Account's LINE VOOM and profile
With the LINE URL scheme, you can let users open LINE VOOM and the profile page of your LINE Official Account.
LINE URL scheme | Description |
---|---|
https://line.me/R/home/public/main?id={LINE ID without @} | Opens the LINE Official Account's LINE VOOM. |
https://line.me/R/home/public/profile?id={LINE ID without @} | Opens the LINE Official Account's profile. |
https://line.me/R/home/public/post?id={LINE ID without @} &postId={postId} | Opens the given VOOM post of the specified LINE Official Account. Find the post ID of individual posts on the "LINE VOOM" page in the "Home" tab of LINE Official Account Manager (opens new window). |
Replace {LINE ID without @}
in the URL scheme with the LINE ID of your LINE Official Account. You can specify either a basic ID or a premium ID. Exclude the at-sign (@
) prefix from the LINE ID of your LINE Official Account. For example, if the LINE ID is @linedevelopers
, use https://line.me/R/home/public/main?id=linedevelopers
.
Find the LINE ID of your LINE Official Account in LINE Official Account Manager (opens new window). For more information, see Share the LINE ID of your LINE Official Account.
To post on LINE VOOM or customize the profile for your LINE Official Account, use the LINE Official Account Manager (opens new window).
# Sending text messages
With the URL scheme, you can set a text message for a user to send to their friends or to LINE Official Accounts.
LINE URL scheme | Description |
---|---|
https://line.me/R/share?text={text_message} | Opens the "Share with" screen. Users can select friends, group chats, or multi-person chats to send a text message specified with {text_message} . Users can send the text also to Keep, LINE VOOM, and other apps. |
https://line.me/R/oaMessage/{Percent-encoded LINE ID} /?{text_message} | Opens a chat screen with your LINE Official Account. Set the text message in {text_message} for users to send to your LINE Official Account. |
Make sure {Percent-encoded LINE ID}
and {text_message}
are percent encoded (opens new window) in UTF-8. For example, if you are sending a text message "Hi there!" to a LINE Official Account with the LINE ID @linedevelopers
, use https://line.me/R/oaMessage/%40linedevelopers/?Hi%20there%21
. If you replaced with the LINE ID that isn't percent encoded, it will also work, but is deprecated.
You can specify either a Basic ID or a Premium ID (opens new window) (only available in Japanese) as the LINE ID for your LINE Official Account.
Although you can continue to use the URL scheme https://line.me/R/msg/text/?{text_message}
, it's deprecated and we recommend that you use https://line.me/R/share?text={text_message}
.
Find the LINE ID of your LINE Official Account in LINE Official Account Manager (opens new window). For more information, see Share the LINE ID of your LINE Official Account.
# Opening profile information
With the LINE URL scheme, you can let users open their "My profile" screen. On this screen, users can update their display name and status message, set their LINE ID and view profile settings.
LINE URL scheme | Description |
---|---|
https://line.me/R/nv/profile | Opens the user's "My profile" screen |
https://line.me/R/nv/profileSetId | Opens the user's "LINE ID" screen. With this URL scheme, you can let users set their LINE ID if they didn't set the ID yet. |
# Opening common LINE screens
With the LINE URL scheme, you can let users open different LINE screens, including the "Chats" screen.
LINE URL scheme | Description |
---|---|
https://line.me/R/nv/chat | Opens the "Chats" screen. |
https://line.me/R/nv/timeline | Opens the "LINE VOOM" screen. |
https://line.me/R/nv/wallet | Opens the "Wallet" screen. |
https://line.me/R/nv/addFriends | Opens the "Add friends" screen. |
https://line.me/R/nv/officialAccounts | Opens the "Official Accounts" screen. |
The URL scheme to open the "Wallet" screen is changed to https://line.me/R/nv/wallet
from https://line.me/R/nv/more
. The old scheme is now only available in LINE for iOS and LINE for Android, on versions earlier than v10.21.0.
# Opening LINE settings
With the LINE URL scheme, you can open different settings menu.
LINE URL scheme | Description |
---|---|
https://line.me/R/nv/settings | Opens the "Settings" screen. |
https://line.me/R/nv/settings/account | Opens the "Account" settings screen. Displays the user's LINE account information. |
https://line.me/R/nv/connectedApps | Opens the "Authorized apps" screen in the "Account" settings screen. Users can see the permissions granted to authorized apps and unlink apps from this screen. |
https://line.me/R/nv/connectedDevices | Opens the "Connected devices" screen in the "Account" settings screen. |
https://line.me/R/nv/settings/privacy | Opens the "Privacy" screen. |
https://line.me/R/nv/things/deviceLink | Opens the "LINE Things" settings screen. This screen is used to link devices to LINE and check which devices are already linked. |
https://line.me/R/nv/settings/sticker | Opens the "Stickers" settings screen. |
https://line.me/R/nv/stickerShop/mySticker | Opens the "My Stickers" screen in the "Stickers" settings screen. |
https://line.me/R/nv/settings/themeSettingsMenu (iOS), https://line.me/R/nv/settings/theme (Android) | Opens the "Themes" settings screen. The scheme is different for iOS and Android. |
https://line.me/R/nv/themeSettings | Opens the "My Themes" screen in the "Themes" settings screen. |
https://line.me/R/nv/notificationServiceDetail | Opens the "Authorized apps" screen in the "Notification" settings. Users can configure notification settings for authorized apps in this screen. |
https://line.me/R/nv/settings/chatSettings | Opens the "Chats" settings screen. |
https://line.me/R/nv/suggestSettings | Opens the "Display suggestions" screen in the "Chats" settings. |
https://line.me/R/nv/settings/callSettings | Opens the "Calls" settings screen. |
https://line.me/R/nv/settings/addressBookSync | Opens the "Friends" settings screen. |
https://line.me/R/nv/settings/timelineSettings | Opens the "LINE VOOM" settings screen. |
# Opening Sticker Shop
With the LINE URL scheme, you can let users open Sticker Shop in LINE to encourage purchase of official and creators' sticker sets.
LINE URL scheme | Description |
---|---|
https://line.me/R/shop/sticker/detail/{package_id} | Opens the "Sticker set info" screen for a specified sticker set. Specify the {package_id} number of the sticker page from the LINE STORE (opens new window) URL. |
https://line.me/R/shop/category/{category_id} | Displays the popularity ranking for the specified category. Specify the {category_id} number from the category page in the "Official Stickers" section of the LINE STORE (opens new window) URL. |
https://line.me/R/shop/sticker/author/{author_id} | Opens a list of sticker sets from a specified author. Specify the {author_id} number of the creator page from the LINE STORE (opens new window) URL. |
https://line.me/R/nv/stickerShop | Opens the "HOME" tab in the "Sticker shop" screen. |
https://line.me/R/shop/sticker/hot | Opens the "RANK" tab in the "Sticker Shop" screen. |
https://line.me/R/shop/sticker/new | Opens the "NEW" tab in the "Sticker Shop" screen. |
https://line.me/R/shop/sticker/event | Opens the "EVENT" tab in the "Sticker Shop" screen. |
https://line.me/R/shop/sticker/category | Opens the "CATEGORIES" tab in the "Sticker Shop" screen. |
To create your own sticker sets for users, visit LINE Creators Market (opens new window) and use the LINE Sticker Maker (opens new window) app.
# Opening Theme Shop
With the LINE URL scheme, you can let user open Theme Shop in LINE to encourage purchase of official and creators' theme.
LINE URL scheme | Description |
---|---|
https://line.me/R/shop/theme/detail?id={product_id} | Opens the "Theme info" screen of the given theme. Specify {product_id} to the ID specified in the theme page URL in LINE STORE (opens new window). For example, if you open Matte White (opens new window)https://store.line.me/themeshop/product/0bac8fed-4c75-40c5-9982-e9ecc3b9d191/en , specify 0bac8fed-4c75-40c5-9982-e9ecc3b9d191 . |
# Opening a LIFF app
With the LINE URL scheme, you can let users open a LIFF app. A LIFF app is a web app built using the LINE Front-end Framework (LIFF).
LINE URL scheme | Description |
---|---|
https://liff.line.me/{liffId} | Opens the LIFF app with the given LIFF ID. This URL scheme is called a LIFF URL. |
https://liff.line.me/{liffId} /path_A/path_B/?key1=value1&key2=value2 | Opens the LIFF app with the given LIFF ID. You can pass /path_A/path_B/?key1=value1&key2=value2 as extra information. |
For more information on the process of opening a LIFF app, see Opening a LIFF app in the LIFF documentation.
# Opening a URL in an external browser
With the query parameters, you can let users open a URL in an external browser instead of LINE's in-app browser.
These query parameters work for all URLs accessed from the LINE app, except for on LIFF apps. Even if you add these query parameters to a LIFF URL, it won't open in an external browser.
URL with the query parameter | Description |
---|---|
https://example.com/?openExternalBrowser=1 | Opens target URL, in an external browser |
https://example.com/?openInAppBrowser=0 | Opens target URL, in a Chrome custom tab (only available in LINE for Android) [1] |
When a URL is read by the QR code reader, the target URL is opened in a Chrome custom tab even without the query parameter. ↩︎