LINE Front-end Framework (LIFF) is a platform for web apps provided by LINE. The web apps running on this platform are called LIFF apps.
LIFF apps can get data from the LINE Platform such as the LINE user ID. The LIFF app can use such data to provide features that utilize user information and send messages on the user's behalf.
Using npm
$ npm install --save @line/liff
Using yarn
$ yarn add @line/liff
Include the SDK in your JavaScript or TypeScript files:
import liff from '@line/liff';
liff.init({ liffID: 'myLiffId' });
Type definitions for TypeScript are already included in the @line/liff
package
The LIFF SDK is also available on LINE's CDN.
<script src="https://static.line-scdn.net/liff/edge/versions/2/sdk.js"></script>
See integrating LIFF for more details.
See LIFF Document and API Reference.
Using LIFF means you agree to the LINE Developers Agreement.