FlagMaker
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # 使用 LINE Notify 通知粉專有新貼文 由於 Meta 更改政策,不再提供透過 API 存取 Instagram 個人帳號,因此原本在[《AI 自動化流程超 Easy--不寫程式 No code 也能聰明幹大事》](https://www.flag.com.tw/books/product/F4328)一書中 2-8 頁以 Instagram 實作的範例無法運作,在 make.com 中必須改用 [Instagram for Business](https://www.make.com/en/help/apps/marketing/instagram-for-business#instagram-for-business) App 取代原本的 Instagram App,不過這程序比較麻煩,所以本文就把原本書中的例子改成使用 Facebook 的粉專實作。 :::info 開始跟著本文操作之前,請先確認你有在 Facebook 建立粉專,如果還沒有,可以跟著〈[在 Facebook 建立粉絲專頁](/nOgCJOI-T5SeDfuezn59gQ)〉一文建立一個專門用來測試的粉專。 ::: ## 讀取粉專新貼文 請跟著以下步驟建立可以讀取粉專新貼文的腳本: 1. 登入 make.com 建立新腳本: ![image](https://hackmd.io/_uploads/S10Rq-bSkl.png) 請在登入 make.com 後按右上方 **+ Cretae a new scenario**: 2. 加入監看粉專新貼文的模組: ![image](https://hackmd.io/_uploads/HJFJ3WZSke.png) 在搜尋欄位填入 "face" 後選取 **Facebook Pages** App: ![image](https://hackmd.io/_uploads/S1uX2--H1e.png) 選取 **Watch Posts** 模組: :::warning 請確認選對,不要選到 **Watch Posts (public pages)**,這個模組無法監看你自己建立的粉專,只能監看別人建立的粉專。 ::: ![image](https://hackmd.io/_uploads/HyMq6WZHyx.png) 按 **Create a connection** 建立讓 make.com 可以讀取粉專的 Facebook 連線: ![image](https://hackmd.io/_uploads/S1vxRZWBJl.png) 填入連線的名稱,本例保留預設名稱,再按 **Save**: ![image](https://hackmd.io/_uploads/rJNECZbB1e.png) 如果你剛剛建立粉專,或是有切換成粉專的身分,就會先出現這個畫面,必須按**繼續**切換回你自己的身分才能繼續: ![image](https://hackmd.io/_uploads/H15OCZ-H1e.png) 確認這是你要使用的帳號後按一下繼續: :::info 這個畫面無法切換不同的 Facebook 帳號,如果要改用別的帳號,就必須先登出 Facebook 在登入你要使用的帳號後再進行建立連線的步驟。你可以為不同的帳號建立個別的連線,方便之後使用。 ::: ![image](https://hackmd.io/_uploads/H1ZNJzbHyx.png) 建立完成後會在 **Connection** 欄位看到剛剛建立的連線,如果你有建立其它的連線,也可以在這裡選用。按一下 **Pages** 欄位可以選取要監看新貼的粉專;**Limit** 可以設定要讀取的貼文數量,這裡保留預設值 2。設定完成後請按 **OK**: ![image](https://hackmd.io/_uploads/H1bZlGbSJg.png) 這裡可以選擇哪些文章算新貼文: |選項|說明| |----|----| |From now on|從設定完成這刻起算| |Since specific date|會出現欄位讓你填入起算的日期時間| |All|所有貼文都是新貼文| |Choose manually|會列出貼文讓你選擇要把哪些當成新貼文| 這裡保留預設的 **From now on** 後按 **OK**,稍後我們會一邊貼文一邊測試。 3. 完成設定後,就可以測試是否可以讀取到新貼文。首先在剛剛選取要監看新貼文的粉專上貼上一則有照片的文章: ![24](https://hackmd.io/_uploads/BJnnfM-SJx.jpg =300x) 接著執行剛剛設定好的模組: ![image](https://hackmd.io/_uploads/ryrGXzZrJg.png) 在模組上按滑鼠右鍵後選 **Run this module only** 單獨執行: ![image](https://hackmd.io/_uploads/r15AQG-Hyg.png) 正確讀取到新貼文後會顯示如上的畫面,貼文資訊會蒐集在**資料包(bundle)** 中,**Link** 是貼文網址、**Message** 是貼文文字、**Picture** 是縮圖網址、**Full picture** 是原圖網址。把縮圖或是原圖網址貼到瀏覽器網址列,就可以看到實際的圖片: ![image](https://hackmd.io/_uploads/H1yTEzbryl.png) 如果再貼兩則有照片的貼文,重新執行模組,可以看到: ![image](https://hackmd.io/_uploads/r1nQSfWHyx.png) 就會產生兩個資料包,內含個別貼文的資訊。 4. 加入以 LINE 通知有新貼文的模組: :::info 這裡是依照書中以 LINE Notify 機制通知新貼文的作法,由於 LINE Notify 機制於 2025/4/1 起停止服務,如果你是在 2025/4/1 後才看到這篇文章,請改用步驟 5 的作法。 ::: ![image](https://hackmd.io/_uploads/rJrF8f-Byg.png) 先在空白處按一下,關閉顯示新貼文資訊的交談窗後再按模組右側的 **+**: ![image](https://hackmd.io/_uploads/S1scPGWBJx.png) 在底下的搜尋欄鍵入 "line",確認找到 **LINE** App,選取底下的 **Show more**: ![image](https://hackmd.io/_uploads/SJMeufWHJg.png) 往下捲選取 **Send a Notification** 模組: ![image](https://hackmd.io/_uploads/rJ0B_GWrke.png) 按 **Create a connection** 建議讓 make.com 可以使用 LINE 傳送通知的連線: ![image](https://hackmd.io/_uploads/ByQFuM-H1e.png) 鍵入連線名稱,本例保留預設的名稱後按 **Save** 繼續: ![image](https://hackmd.io/_uploads/BkrnOG-ryg.png) 你可以使用電子郵件帳號和密碼登入,建議按**透過行動條碼登入**比較簡單,請自行完成登入步驟: ![image](https://hackmd.io/_uploads/BJKPFMbSkl.png) 請選取**透過1對1聊天接收LINE Notify的通知**後按**同意並連動**: ![image](https://hackmd.io/_uploads/S1Bb9GZryg.png) 首次使用會在 LINE 上看到多了一個 LINE Notify 好友,並且收到『與 Make 連動完成』的訊息,這樣就表示設定正確: ![image](https://hackmd.io/_uploads/Sy2slQWByg.png) 設定完成會在 **Connection** 欄位看到剛剛建立的連線,接著在 **Message** 欄位按一下設定通知的內文,左側會出現可用的資料清單,這是從前一個模組產生的資料包而來。請按一下清單中的 **1.Message** 項目表示要選用貼文的文字內容,就會自動填入欄位中,項目前面的號碼是模組加入腳本的順序編號,你也可以在模組右下方看到: ![image](https://hackmd.io/_uploads/SkyE-XbSyx.png) 在 **Upload an Image** 按一下選取 **By URL** 表示要以網址傳送圖片,並依照剛剛代入貼文內文的操作方式,將 **Image Full Size URL** 代入 **Full Picture** 項目、**Image thumbnail URL** 代入 **Picture** 項目,最後按 **OK** 完成。 5. 完成整個腳本後,就可以進行測試了。請先自行貼一則含有照片的新貼文: ![image](https://hackmd.io/_uploads/r1azRfZHyx.png) 確認貼文後按一下腳本編輯區域左下方的 **Run once**: ![image](https://hackmd.io/_uploads/SJZ6-7bHyg.png) 你可以看到兩個模組都有執行一次,表示有讀取到新貼文,而且也發送了一次通知: ![41](https://hackmd.io/_uploads/BkvyfXZHyg.jpg) 在 LINE 上會看到送來的新通知。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully