-
Notifications
You must be signed in to change notification settings - Fork 1
docs: update README with usage example and dev guide #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,26 +1,103 @@ | ||||||||||||||||||||
| # fca-redux | ||||||||||||||||||||
|
|
||||||||||||||||||||
| > [!WARNING] | ||||||||||||||||||||
| > This project is currently **under development**. Features may be incomplete, and breaking changes can occur at any time. | ||||||||||||||||||||
| > This project is currently **under development**. Features may be incomplete, and breaking changes can occur at any time. Use with caution. | ||||||||||||||||||||
|
|
||||||||||||||||||||
| A TypeScript rewrite of the Nero Facebook Client API. | ||||||||||||||||||||
| A modern, robust **TypeScript** rewrite of the Nero Facebook Client API (and its predecessors). This library allows you to programmatically interact with Facebook's private API to send messages, listen to events, and manage interactions. | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ## Features | ||||||||||||||||||||
| - Messaging (Send, Unsend, Mark as Read, Reactions) | ||||||||||||||||||||
| - MQTT Realtime Listener | ||||||||||||||||||||
| - User Information retrieval | ||||||||||||||||||||
| - Modern TypeScript implementation | ||||||||||||||||||||
| - Integrated Debugging & Logging | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - **Messaging**: Send text, attachments, stickers, and handle replies. | ||||||||||||||||||||
| - **Realtime**: MQTT-based listener for instant message reception. | ||||||||||||||||||||
| - **Reactions**: React to messages programmatically. | ||||||||||||||||||||
| - **User Info**: Retrieve detailed user profiles. | ||||||||||||||||||||
| - **Safety**: Unsend messages and manage thread settings. | ||||||||||||||||||||
| - **Developer Experience**: | ||||||||||||||||||||
| - Full TypeScript support with type definitions. | ||||||||||||||||||||
| - Integrated debugging and logging utilities. | ||||||||||||||||||||
| - customizable options (User Agent, auto-reconnect, etc.). | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ## Installation | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ```bash | ||||||||||||||||||||
| npm install | ||||||||||||||||||||
| npm install fca-redux | ||||||||||||||||||||
| ``` | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ## Build | ||||||||||||||||||||
| ```bash | ||||||||||||||||||||
| npm run build | ||||||||||||||||||||
| ## Quick Start | ||||||||||||||||||||
|
|
||||||||||||||||||||
| Here is a simple example of how to log in using an `appState` (cookies) and listen for incoming messages. | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ```typescript | ||||||||||||||||||||
| import { login } from 'fca-redux'; | ||||||||||||||||||||
| // Or: import fca from 'fca-redux'; | ||||||||||||||||||||
|
|
||||||||||||||||||||
| // Your 'appState.json' contains the cookies from a logged-in session. | ||||||||||||||||||||
| const credentials = { | ||||||||||||||||||||
| appState: require('./appState.json') | ||||||||||||||||||||
|
Comment on lines
+33
to
+36
|
||||||||||||||||||||
| // Your 'appState.json' contains the cookies from a logged-in session. | |
| const credentials = { | |
| appState: require('./appState.json') | |
| import appState from './appState.json'; | |
| // Your 'appState.json' contains the cookies from a logged-in session. | |
| const credentials = { | |
| appState |
Copilot
AI
Jan 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent spacing in numbered list. All other numbered list items in the "Contributing" section use a period followed by two spaces before the text (e.g., "1. Fork"), but this formatting should be consistent throughout both the "Development" and "Contributing" sections.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent capitalization in the sentence. The word "customizable" should be capitalized to match the style of other bullet points in this list, which all start with capital letters.