@robinpath/facebook
v0.1.1
Published
Facebook module for RobinPath.
Readme
@robinpath/facebook
Facebook module for RobinPath.
Why use this module?
The facebook module lets you:
- getPageInfo
- listPagePosts
- createPagePost
- updatePost
- deletePost
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/facebookQuick Start
1. Set up credentials
facebook.setCredentials "your-credentials"2. getPageInfo
facebook.getPageInfoAvailable Functions
| Function | Description |
|----------|-------------|
| facebook.setCredentials | Configure facebook credentials. |
| facebook.getPageInfo | getPageInfo |
| facebook.listPagePosts | listPagePosts |
| facebook.createPagePost | createPagePost |
| facebook.updatePost | updatePost |
| facebook.deletePost | deletePost |
| facebook.getPost | getPost |
| facebook.getPostInsights | getPostInsights |
| facebook.getPageInsights | getPageInsights |
| facebook.listComments | listComments |
| facebook.replyToComment | replyToComment |
| facebook.deleteComment | deleteComment |
| facebook.hideComment | hideComment |
| facebook.listPageEvents | listPageEvents |
| facebook.createPageEvent | createPageEvent |
| facebook.uploadPhoto | uploadPhoto |
| facebook.uploadVideo | uploadVideo |
| facebook.getAdAccounts | getAdAccounts |
| facebook.getCampaigns | getCampaigns |
| facebook.getMe | getMe |
| facebook.searchPages | searchPages |
Examples
getPageInfo
facebook.getPageInfolistPagePosts
facebook.listPagePostscreatePagePost
facebook.createPagePostIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/facebook";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
facebook.setCredentials "your-credentials"
facebook.getPageInfo
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/instagram— Instagram module for complementary functionality@robinpath/twitter— Twitter/X module for complementary functionality@robinpath/linkedin— LinkedIn module for complementary functionality@robinpath/tiktok— TikTok module for complementary functionality@robinpath/pinterest— Pinterest module for complementary functionality
License
MIT
