line-liff

LINE LIFF (Front-end Framework) Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "line-liff" with this command: npx skills add yangnim21029/line-api-dev/yangnim21029-line-api-dev-line-liff

LINE LIFF (Front-end Framework) Skill

This skill provides specialized knowledge and workflows for building applications using the LINE Front-end Framework (LIFF).

Core Capabilities

  • SDK Integration & Initialization: Using CDN edge/fixed paths or @line/liff npm package. Proper use of liff.init() and liff.ready .

  • Authentication & User Data: Managing login state with liff.login() /liff.logout() , retrieving user profiles, email addresses (with openid scope), and friendship status.

  • In-App Interaction: Sending messages to the current chat room (liff.sendMessages ) or to friends/groups via the Share Target Picker (liff.shareTargetPicker ).

  • Device Features: Utilizing the 2D code (QR) reader (liff.scanCodeV2 ) and opening URLs in external browsers.

  • Context & Linking: Retrieving app context (user ID, chat type) and creating permanent links for LIFF pages.

Common Workflows

  1. Setting Up a LIFF App
  • Create a LINE Login channel in the LINE Developers Console.

  • Add a LIFF app to the channel and specify the Endpoint URL.

  • Integrate the SDK and call liff.init({ liffId: "YOUR_LIFF_ID" }) .

  • Use the liff-starter.html template in assets/ to begin.

  1. Handling Authentication
  • Check login status: if (!liff.isLoggedIn()) { liff.login(); } .

  • Get profile: liff.getProfile().then(profile => { ... }) .

  • For server-side verification, use liff.getIDToken() to get a JWT.

  1. Sending Messages via Share Target Picker
  • Verify availability: liff.isApiAvailable('shareTargetPicker') .

  • Execute: liff.shareTargetPicker([{ type: 'text', text: 'Hello!' }]) .

  • Note: Requires the "Share Target Picker" to be enabled in the Console.

Resources

  • LIFF API Reference: Detailed method signatures and usage examples.

  • Development Guidelines: Best practices for URLs, redirect flows, and OGP tags.

  • LIFF Starter Template: Minimal boilerplate for quick prototyping.

Important Note on Security

  • Confidentiality: Treat access_token and ID token as sensitive. Never leak them to external logging tools.

  • Endpoint Constraints: liff.init() only works on URLs at or below the configured Endpoint URL.

  • Universal Links: Use https://liff.line.me/{liffId} as the primary entry point for best compatibility.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

line-platform

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

line-liff

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated