New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ryuu-fca-api

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ryuu-fca-api

A Facebook chat API

  • 3.2.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
162
decreased by-23.22%
Maintainers
0
Weekly downloads
 
Created
Source

Ryuu-FCA-API - Facebook Chat API

Ryuu-FCA-API is a powerful fork of the Facebook Chat API with significant improvements and new features.


Key Features

1. Enhanced Security Bypass

  • Improved automation detection bypass
  • Better handling of Facebook's security checks
  • Reduced account restrictions

2. Login Improvements

  • login via credentials (email/password now works!)
  • AppState support maintained
  • Fixed region detection

3. Advanced Features

  • Random User-Agent generation
  • Bypass automation behavior detection
  • Improved error handling
  • Enhanced session stability

Installation

npm install ryuu-fca-api

Authentication Methods

1. Credentials Login (Now Working!)

login({
    email: "your_email",
    password: "your_password"
}, (err, api) => {
    if(err) return console.error(err);
    // Bot code here
});

2. AppState Login

login({
    appState: JSON.parse(fs.readFileSync('appstate.json', 'utf8'))
}, (err, api) => {
    if(err) return console.error(err);
    // Bot code here
});

Basic Usage

const login = require("ryuu-fca-api");

login({
    email: "YOUR_EMAIL",
    password: "YOUR_PASSWORD"
}, (err, api) => {
    if(err) return console.error(err);

    api.setOptions({
        forceLogin: true,
        listenEvents: true,
        logLevel: "silent",
        updatePresence: false,
        selfListen: false
    });

    api.listenMqtt((err, event) => {
        if(err) return console.error(err);
        
        switch(event.type) {
            case "message":
                api.sendMessage("Hello!", event.threadID);
                break;
        }
    });
});

Advanced Options

api.setOptions({
    forceLogin: true,
    listenEvents: true,
    logLevel: "silent",
    updatePresence: false,
    selfListen: false,
    userAgent: "user agent here", //optional
    autoMarkRead: false,
    autoMarkDelivery: true
});

Core Features

Message Operations

  • Send/Receive messages
  • Handle attachments
  • Message reactions
  • Thread management

Security Features

  • Bypass automation detection
  • Random User-Agent
  • Region fix implementation
  • Enhanced error handling

Session Management

  • Multiple login methods
  • Session persistence
  • Error recovery

Credits

  • Jr Busaco - Owner
  • Original FCA Authors - Base Framework
  • Ryuu Team - Enhanced Features & Fixes

Support

Join our community:

  • Facebook Support Group

Contact info:


Important Notes

  • Login via credentials has been restored and is working
  • Random User-Agent helps avoid detection
  • Region fix improves connection stability
  • Use responsibly to avoid restrictions

License

This project is licensed under the MIT License.


Note: While we've restored many features, please use this API responsibly and in accordance with Facebook's terms of service.


Keywords

FAQs

Package last updated on 05 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc