# 如何綁定 LINE 官方帳號

## 四步驟，快速幫您搞定：

開啟 LINE 官方帳號登入。

1. 啟用 Messaging API －取得 Channel Secret
2. 取得 Channel access token
3. 建立 Login Channel、LIFF App：取得 LIFF ID
4. 與平台（週週趣系統後台）完成綁定。從 LINE 官方帳號 後台中，取得 \[ Channel ID 、Channel Secret ] 及LINE Developers 取得 \[ LIFF ID ] 資料，並複製內容，貼在週週趣系統後台的 LINE 官方帳號管理中
5. 取得Webhook綁定完成

***

## Step 1: 啟用 Messaging API －取得 Channel Secret

* 開啟 個人 LINE 官方後台（登入 LINE Official Account Manager）。
* 選擇要啟用的 **官方帳號**\
  ![](/files/KEqh4wjh3HCiBnaBEZuq)
* 點擊右上角「設定」
* 在側邊工具欄中選擇 *Messaging API* 分頁
* 點選 **啟用 Messaging API**

<figure><img src="/files/HinF1ucNiJI7W0TjFb3b" alt=""><figcaption></figcaption></figure>

* 登錄開發者資訊（填寫姓名、電子郵件帳號），按下「同意」

<figure><img src="/files/j9wZJpVvf7gVs2t7z2Wd" alt=""><figcaption></figcaption></figure>

* 登錄開發者資訊，按下「確定」

<figure><img src="/files/qFJoHYbg5CzBTyJOz7Y4" alt=""><figcaption></figcaption></figure>

* 選擇服務提供者，按下「同意」

  點選綁定 LINE Developers 所建立的Provider

  <figure><img src="/files/ll78plY4noP3judVM5dI" alt=""><figcaption></figcaption></figure>
* 下一步，隱私權政策及服務條款（可依照需求填或不填），按下「確定」

<figure><img src="/files/cUquR2refzZ9Kd0FTVqZ" alt=""><figcaption></figcaption></figure>

* 啟用 Messaging API，按下「確定」

<figure><img src="/files/OlN5iYlPMrhca9zK4rf6" alt=""><figcaption></figcaption></figure>

* 完成後，可順利取得 Channel Secret

{% hint style="danger" %}
**注意：此頁面先不要關閉！**
{% endhint %}

<figure><img src="/files/v34BUbXMJLiw6AyNE9ek" alt=""><figcaption></figcaption></figure>

## Step 2: 取得 Channel access token

* 打開 LINE Developers 網頁

<figure><img src="/files/i1aPrJMOGhuF3KYqE4Fu" alt=""><figcaption></figcaption></figure>

* 點擊「Console」進入 Providers（提供者） 頁面

<figure><img src="/files/ojeUG7aoMrNn1kppZxsR" alt=""><figcaption></figcaption></figure>

* 進入 Providers會看到此提供者旗下所有的官方帳號（Channel 項目），選擇要使用的官方帳號

<figure><img src="/files/NvXOz1aGelksPJAYbp5B" alt=""><figcaption></figcaption></figure>

* 點擊頁籤 Messaging API

<figure><img src="/files/DoqXcVcSEJCuZVU93Ln5" alt=""><figcaption></figcaption></figure>

* 滑動至下方 Channel access token 欄位，並點擊「Issue」

<figure><img src="/files/wPUKnIu3CoXVG22V4hju" alt=""><figcaption></figcaption></figure>

* 完成後，可順利取得 Channel access token

<figure><img src="/files/MP8M6S5N4uAxrXO3utx6" alt=""><figcaption></figcaption></figure>

## Step 3: 建立 Login Channel、LIFF App

### 取得 LIFF ID

* 在 Provider（提供者） 頁面的 *Channel* 頁籤，點擊「Create a new channel」

<figure><img src="/files/9MbbV1amwgFVGWXtQxom" alt=""><figcaption></figcaption></figure>

* 選擇 LINE Login

<figure><img src="/files/PWoVj3egvgpAhFRHoOaG" alt=""><figcaption></figcaption></figure>

* 填寫資料（App type 欄位依圖中指示填寫）。填寫完畢後，按下「建立」

<figure><img src="/files/XzqwZMdQf85CJC99tV3P" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/yU894zr7hkID1UjBFZG3" alt=""><figcaption></figcaption></figure>

* 在 *Basic settings* 頁籤中，往下滑動到 Add friend option 欄位

<figure><img src="/files/E4UkTUCoEph2yoYUQ1DK" alt=""><figcaption></figcaption></figure>

* 點按 Edit，並選擇剛剛那個 Message API Channel，按下 Update

<figure><img src="/files/ll423LZ7Ph6Yf1vOVoiL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/y07S0Iq3exLRPovt740X" alt=""><figcaption></figcaption></figure>

* 往下滑動至 OpenID Connect 欄位，點按 Apply，依照圖中指示將資料填寫完畢後送出。

<figure><img src="/files/3WKvEaj93vM2Y7gGmiOU" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/qfctO7TF1bnc10QTNVz1" alt=""><figcaption></figcaption></figure>

* 送出後，OpenID Connect 欄位會顯示 Applied

<figure><img src="/files/CnuReXtG5X1JENFZCkr8" alt=""><figcaption></figcaption></figure>

* 下一步：建立 LIFF APP。往上滑動，回到最上方，進入 *LIFF* 頁籤，點擊 Add

<figure><img src="/files/ykY27ech4shCFuyXFsbZ" alt=""><figcaption></figcaption></figure>

* 根據圖中指示填寫資料，填寫完畢後，按下「Add」
  * End Point url：<https://app.weekielife.com/rsvp/liff>

<figure><img src="/files/gM53XPQlud2ixLEZrOsV" alt=""><figcaption></figcaption></figure>

* 完成後，可順利取得 LIFF ID！

<figure><img src="/files/RBBhrNv9Y1sgumCviIOK" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}

#### 提醒：記得往上滑動，回最上方，將 Channel 狀態從 Developing 改成 Published：

{% endhint %}

* 點擊 Developing 標籤

<figure><img src="/files/Q1s6EJCjyFvD7Lynw40g" alt=""><figcaption></figcaption></figure>

* 點下 Publish

<figure><img src="/files/dA8CgRUernKJ3b62GsYn" alt=""><figcaption></figcaption></figure>

* 成功後，標籤會顯示 Published

<figure><img src="/files/tRmaijWEpI5uNl1mpaIb" alt=""><figcaption></figcaption></figure>

## Step 4: 與平台（週週趣系統後台）完成綁定

* 將步驟 1 至步驟 3 所獲得的 Channel Secret 、Channel access token、LIFF ID 資料填入對應的欄位裡
* 點選『確認綁定』

<figure><img src="/files/vYPG0VQc4akSr8xaFFfU" alt=""><figcaption></figcaption></figure>

## 恭喜你！已完成綁定，接下來請將權限分享給週週趣。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://weekielife.gitbook.io/weekielife-docs/newbie/ru-he-bang-ding-line-guan-fang-zhang-hao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
