# Using LINE features with the LINE URL scheme
You can use the following URL scheme to open a sticker shop or LIFF app, or activate the camera from your service (This feature is called the LINE URL scheme). The LINE URL scheme can also be used with a LINE Official Account. For example, by setting up an action to open the LINE URL scheme in the rich menus, you can show the content in LINE to the user who taps on the menu.
https://line.me/R/
https://liff.line.me/
line://
(Deprecated)
line://
is deprecated because it allows a takeover attack of the URL scheme.
A line://
takeover attack is an attack in which a user clicks on a URL following line://
and a non-LINE app may start regardless of the intention of the LINE user. This attack is only established under certain conditions.
We have not yet decided when to render line://
obsolete.
LINE doesn't provide a URL scheme for launching native apps other than LINE. However, if a native app from another company has a URL scheme for launching the application, you can use the URL scheme in URI actions such as in the rich menu of LINE and Flex Messages.
# If the user hasn't installed LINE
If a user has LINE installed, the app is automatically launched and the user is redirected to the specified content when a user accesses a URL using the LINE URL Scheme. If the user does not have LINE installed, the behavior depends on the format of the LINE URL scheme as shown below.
LINE URL Scheme | If the user hasn't installed LINE |
---|---|
https://line.me/R/ | A web browser is opened with a prompt for the user to download LINE. |
line:// (Deprecated) | Nothing happens or the user is redirected to an error page. |
# Operating environment
The LINE URL scheme is available on LINE for iOS or Android.
The LINE URL scheme is not supported on the desktop version (macOS, Windows) of LINE.
# Available LINE URL schemes
The following URL schemes can be used in the specified operating environment.
- Opening the camera and camera roll to send an image
- 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 screens
- Opening the Sticker Shop
- Opening the Theme Shop
- Making phone calls with LINE Out
- Opening a LIFF app
- Opening a URL in an external browser
# Opening the camera and camera roll to send an image
Opens the "Camera Roll" screen where users can select images to share in the chat.
This URL scheme is only supported in LINE chat. It is not supported on other types of chats, on LIFF apps or on apps other than LINE.
LINE URL Scheme | Description |
---|---|
https://line.me/R/nv/camera/ | Opens the camera screen. You can't specify which camera to use for smartphones that have multiple cameras, such as front (in-camera) and rear (out-camera). |
https://line.me/R/nv/cameraRoll/single | Opens the "Camera Roll" screen. Users can select one image to share in the chat. |
https://line.me/R/nv/cameraRoll/multi | Opens the "Camera Roll" screen. Users can select multiple images to share in the chat. |
# Sending location information
Open the location information screen and send the location information to the LINE Official Account.
It is not supported on other types of chats, on LIFF apps or on 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 they want to share. |
# Sharing a LINE Official Account
Encourage users and their friends to add LINE Official Accounts by recommending the specified LINE Official Account.
LINE URL Scheme | Description |
---|---|
https://line.me/R/ti/p/{LINE ID} | Opens profile to add the specified LINE Official Account as a friend. If you are already friends with the target LINE Official Account, a one-on-one chat screen will open. Note: On LINE versions earlier than 11.2.0, opens the "Add friends" screen for the specified LINE Official Account. |
https://line.me/R/nv/recommendOA/{LINE ID} | Opens the "Share with" screen Opens the "Share with" screen where users can select friends, group chats, or multi-person chats to share a link to your LINE Official Account. |
Replace {LINE ID}
with the LINE ID of your LINE Official Account. You can specify either a Basic ID or a Premium ID. Note that the @
in front of the LINE ID shouldn't be replaced with the URL-encoded %40
but should be left as @
.
For example, if the LINE ID is @linedevelopers
use https://line.me/R/ti/p/@linedevelopers
or https://line.me/R/nv/recommendOA/@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.
When a user opens https://line.me/R/ti/p/{LINE ID}
on a computer browser, the public URL of the LINE Official Account profile will be displayed along with a QR code, if all of the following conditions are met (e.g. LINE Official Account of LINE FRIENDS https://line.me/R/ti/p/@linecharacter (opens new window)).
- The LINE Official Account is a verified account.
- The public URL of the LINE Official Account profile is set to be available.
If these requirements aren't met, the QR code for your LINE Official Account will be displayed. 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
Opens the LINE VOOM and profile for the LINE Official Account.
LINE URL Scheme | Description |
---|---|
https://line.me/R/home/public/main?id={LINE ID without @} | Opens the specified LINE Official Account's LINE VOOM. |
https://line.me/R/home/public/profile?id={LINE ID without @} | Opens the profile for the specified LINE Official Account. |
https://line.me/R/home/public/post?id={LINE ID without @} &postId={postId} | Opens a specific LINE VOOM post for 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 @}
with the LINE ID of the LINE Official Account. You can specify either a Basic ID or a Premium ID. Don't include the @
in front of the LINE ID.
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 to the LINE VOOM of your LINE Official Account or to customize your profile, use LINE Official Account Manager (opens new window).
# Sending text messages
Set text messages that users can send to their friends or to your LINE Official Account. profile
LINE URL Scheme | Description |
---|---|
https://line.me/R/share?text={text_message} | Opens the "Share with" screen. You can select friends, group chats, or multi-person chats to send a text message set to {text_message} . Users can also send the text to Keep, LINE VOOM, and other apps. |
https://line.me/R/oaMessage/{LINE ID} /?{text_message} | Opens the chat screen with the LINE Official Account. Set text messages in {text_message} that users can send to their friends or to your LINE Official Account. |
While we recommend using https://line.me/R/share?text={text_message}
, you can continue to use the URL Scheme https://line.me/R/msg/text/?{text_message}
to select friends, groups, or chats to send a message.
Make sure {text_message}
is URL encoded (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/@linedevelopers/?Hi%20there%21
.
Replace {LINE ID}
with the LINE ID of the LINE Official Account. You can specify either a Basic ID or a Premium ID. Note that the @
in front of the LINE ID should not be replaced with the URL-encoded %40
but should be left as @
.
For example, if your LINE ID is @linedevelopers
, use https://line.me/R/oaMessage/@linedevelopers/?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
Opens the user's "My profile" screen. From this screen, users can update their display names and status messages, set their LINE IDs and check various LINE profile information.
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. Users can set a LINE ID if they have not already done so. |
# Opening common LINE screens
Opens various screens in LINE.
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 has been changed to https://line.me/R/nv/wallet
. The previous URL scheme, https://line.me/R/nv/more
, is now only available on LINE for iOS or Android, on LINE versions earlier than 10.21.0.
# Opening LINE settings screens
Redirect users to various screens in the "Settings" section of LINE.
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 the Sticker Shop
Opens the "Sticker Shop" screen in LINE to encourage purchase of official or 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, use the LINE Creators Market (opens new window) site and the LINE Sticker Maker (opens new window) app.
# Opening the Theme Shop
Opens the "Theme Shop" screen in LINE to encourage purchase of official or creators' theme.
LINE URL Scheme | Description |
---|---|
https://line.me/R/shop/theme/detail?id={product_id} | Opens the "Theme info" screen for a specified creators' theme. Specify the {product_id} number from the theme page in the "Official Theme" or "Creators Theme" section of the LINE STORE (opens new window) URL. |
# Making phone calls with LINE Out
LINE Out (opens new window) is a service that lets users make phone calls on LINE. This opens the LINE Out screen. For example, you can specify any phone number to open in the "LINE Out" dial pad screen.
LINE Out is not available in all countries. For more information, see the LINE Out How to use (opens new window) page.
LINE URL Scheme | Description |
---|---|
https://line.me/R/call/{country_calling_code} /{phone_number} | Opens the "LINE Out" dial pad screen with a preset phone number. Specify the country code (opens new window) and the phone number as path parameters. Do not include the "+" symbol in the URL. For example, https://line.me/R/call/81/09001234567 sets the country calling code to "+81" and the local phone number to "090-0123-4567". |
https://line.me/R/calls | Opens the "Calls" screen of LINE Out. |
https://line.me/R/call/dialpad | Opens the "LINE Out" dial pad screen. |
https://line.me/R/call/settings | Opens the "LINE Out Settings" screen. |
https://line.me/R/call/contacts | Opens the "Contacts" screen. |
https://line.me/R/call/redeem | Opens the "Redeem for LINE Out Credit" screen. |
# Opening a LIFF app
Opens the specified 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 specified by {liffId} . This URL is opened when you add the LIFF app to your channel on the LINE Developers Console. |
https://liff.line.me/{liffId} /path_A/path_B/?key1=value1&key2=value2 | When opening the LIFF app specified by {liffId} , pass /path_A/path_B/?key1=value1&key2=value2 as additional information. |
For more information on redirecting destinations when opening LIFF apps, see Opening a LIFF app.
# Opening a URL in an external browser
When you access any URLs with these query parameters from the LINE app, you can open the URL in an external browser instead of LINE's in-app browser.
This LINE URL scheme works for all URLs accessed from the LINE app, except for on the LIFF app. Even if you add these query parameters to a LIFF URL, it won't open in an external browser.
LINE URL Scheme | 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 on LINE for Android) [1] |
When a URL is read by the QR code reader, the target URL will be opened in a Chrome custom tab even without the query parameter. ↩︎