npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-facebook-threads

v0.1.7

Published

n8n node for Facebook Threads API

Readme

n8n-nodes-facebook-threads

Node n8n để tích hợp với Facebook Threads API.

Cài đặt

Cài đặt trên n8n

  1. Mở Command Palette trong n8n bằng cách nhấn Ctrl + P.
  2. npm install n8n-nodes-facebook-threads.
  3. Khởi động lại n8n.

Cài đặt thủ công

Clone repo này vào thư mục .n8n/custom của bạn:

cd ~/.n8n/custom
git clone https://github.com/username/n8n-nodes-facebook-threads
cd n8n-nodes-facebook-threads
npm install
npm run build

Khởi động lại n8n.

Sử dụng

Sau khi đã cài đặt, Threads API node sẽ xuất hiện trong danh sách node của n8n.

Xác thực

Node này hỗ trợ hai phương thức xác thực:

1. Đăng nhập OAuth2 (Khuyến nghị)

Phương thức này cho phép người dùng đăng nhập trực tiếp vào tài khoản Facebook để cấp quyền:

  1. Tạo một ứng dụng trên Meta Developer Portal
  2. Cấu hình OAuth redirect URI (URL chuyển hướng) trong cài đặt ứng dụng Meta
  3. Trong n8n, tạo credential mới và chọn phương thức "OAuth2"
  4. Điền App ID, App Secret và Redirect URL
  5. Nhấn vào nút "Connect" để đăng nhập và cấp quyền

2. Sử dụng Access Token thủ công

Nếu bạn đã có Access Token:

  1. Trong n8n, tạo credential mới và chọn phương thức "Access Token"
  2. Điền Access Token của bạn
  3. Điền API Version (mặc định: v18.0)

Lấy Long-Lived Access Token

Short-lived access token thông thường chỉ có hiệu lực trong 1-2 giờ. Để có access token dài hạn (60 ngày), bạn có thể sử dụng tính năng "Get Long-Lived Access Token" trong node này:

  1. Chọn resource "Auth"
  2. Chọn operation "Get Long-Lived Access Token"
  3. Điền App ID của bạn (từ Meta Developer Portal)
  4. Điền App Secret của bạn (từ Meta Developer Portal)
  5. Điền Short-Lived Access Token cần chuyển đổi
  6. Chạy node để nhận Long-Lived Access Token

Tính năng

Node Threads API hỗ trợ các thao tác sau:

Auth

  • Lấy Long-Lived Access Token (hiệu lực 60 ngày)

Thread

  • Tạo Thread mới
  • Đăng bài viết (Post) lên Thread
  • Trả lời một Thread
  • Xem Thread
  • Xóa Thread

Phiên bản

0.1.1

  • Thêm resource mới "Auth" với operation "Get Long-Lived Access Token"
  • Hỗ trợ chuyển đổi short-lived token thành long-lived token (60 ngày)
  • Thêm hỗ trợ đăng nhập OAuth2 trong credentials

0.1.0

  • Phiên bản đầu tiên với các chức năng cơ bản

Tác giả

Sơn Lê

API Endpoints

Node này sử dụng API endpoint của Meta Threads tại https://graph.threads.net thay vì https://graph.facebook.com để đảm bảo sự tương thích tốt nhất với API của Threads.