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-social-facebook

v0.1.94

Published

n8n node for social automation like Meta, Facebook

Readme

n8n-nodes-social-facebook

npm version License: MIT

Node n8n để tự động hóa các tác vụ Facebook/Meta - hỗ trợ quản lý Page, Group, Message, Post và nhiều tính năng khác.

✨ Tính năng

  • Multi-user Session: Quản lý nhiều Facebook account trong cùng một workflow
  • Page Management: Lấy danh sách Pages, quản lý inbox, tạo post
  • Messaging: Gửi tin nhắn từ Page với text, hình ảnh, media
  • Group Operations: Lấy posts trong Group, đăng bài vào Group
  • Comment & Post: Lấy thông tin chi tiết post, comments, metrics
  • Media Upload: Upload hình ảnh lên Facebook
  • Auto Token Refresh: Tự động làm mới session và token
  • Proxy Support: Hỗ trợ HTTP/HTTPS/SOCKS5 proxy với authentication

📋 Yêu cầu

  • Node.js >= 18.10
  • n8n (phiên bản bất kỳ)
  • pnpm >= 9.1 (để build từ source)

🚀 Cài đặt

Cách 1: Sử dụng n8n Community Nodes

  1. Mở n8n
  2. Vào SettingsCommunity Nodes
  3. Tìm kiếm n8n-nodes-social-facebook
  4. Click Install

Cách 2: Cài đặt thủ công

cd ~/.n8n/nodes
npm install n8n-nodes-social-facebook

Cách 3: Docker

FROM n8nio/n8n

USER root
RUN cd /usr/local/lib/node_modules/n8n && \
    npm install n8n-nodes-social-facebook
USER node

🔧 Cấu hình Credentials

  1. Trong n8n, tạo credential mới: Facebook Credential
  2. Điền các thông tin:
    • Facebook Session: JSON session từ Chrome extension (cURL & WS Capture)
    • User Access Token (optional): Token nếu đã có sẵn
    • Proxy URL (optional): Proxy cho requests

Lấy Facebook Session

Sử dụng Chrome extension "cURL & WS Capture" để export session:

  1. Đăng nhập Facebook trên Chrome
  2. Mở extension → Copy session JSON
  3. Paste vào trường "Facebook Session" trong n8n

📖 Operations

Message

| Operation | Mô tả | |-----------|-------| | Send Page Message (facebook_id) | Gửi tin nhắn từ Page đến user bằng facebook_id | | Send Page Message (thread_id) | Gửi tin nhắn từ Page bằng thread_id | | Get Message History | Lấy lịch sử tin nhắn |

Page

| Operation | Mô tả | |-----------|-------| | Get All Pages User Manage | Lấy danh sách Pages mà user quản lý | | Get Users Inboxed To Page | Lấy danh sách users đã inbox vào Page | | Create Page Post | Tạo bài post từ Page |

Group

| Operation | Mô tả | |-----------|-------| | Get Group Info | Lấy thông tin Group | | Get Group Posts | Lấy danh sách posts trong Group | | Create Group Post by User | Đăng bài vào Group bằng account cá nhân | | Create Group Post using Page | Đăng bài vào Group bằng Page |

Comment & Post

| Operation | Mô tả | |-----------|-------| | Get Post Comment | Lấy comments của post | | Post Comment (Page) | Bình luận bằng Page | | Post Comment (User) | Bình luận bằng account cá nhân | | Get Post Detail | Lấy thông tin chi tiết post | | Get Post Metrics | Lấy metrics (likes, comments, shares) |

User

| Operation | Mô tả | |-----------|-------| | Get User Info | Lấy thông tin user | | Create User Post | Tạo post bằng account cá nhân | | Set Post Privacy | Cài đặt privacy cho post |

Media

| Operation | Mô tả | |-----------|-------| | Upload Photo | Upload hình ảnh lên Facebook |

📚 Documentation

| Document | Mô tả | |----------|-------| | Installation Guide | Hướng dẫn cài đặt chi tiết | | Architecture | Kiến trúc hệ thống | | API Reference | Tài liệu API đầy đủ | | Proxy Support | Hỗ trợ HTTP/HTTPS/SOCKS5 proxy ✨ | | Proxy Provider Guide | Chọn proxy phù hợp cho Facebook ⚠️ | | Security | Bảo mật và best practices | | Troubleshooting | Xử lý sự cố | | Enterprise Guide | Khuyến nghị cho doanh nghiệp |

Developer Docs (Internal)

| Document | Mô tả | |----------|-------| | Facebook API Guide | Chi tiết về Facebook GraphQL API | | Token Session Flow | Luồng xử lý token và session | | Post Info Fields | Các trường thông tin của Post |