Giter Club home page Giter Club logo

matrix-fb-chat's Introduction

matrix-fb-chat

A quick n dirty facebook bot bridge.

⚠️ Warning

This API is undocumented, and likely against the Facebook TOS. I am not responsible if you go and get yourself banned from Facebook. This tool is here for anybody to use, but comes with no warrantys or guarantees. In addition, this software is a hack, not a completed or even partially completed work so support will be limited.

What can it do?

  • Bridge one conversation to one room.
  • Send text messages from matrix.
  • Recieve messages and urls from facebook.

Instructions

  1. Run npm install
  2. Run npm run-script build
  3. We now have a tool to retrieve thread numbers, see below.
  4. Clone config.yaml.sample and fill it in.
  • Your facebook id can be seen in your cookies or requests as "c_user".
  • You will need a threadID in addition to a room_id.
  • Currently you need to do some digging on getThreadList to find it, which requires a bit of manual work. A tool to pretty print your threads might arrive in the future.
  1. Run npm run-script start
  2. Chat away!

fb-tool

This tool allows you to retrieve values used for configuring the bot.

--list-threads.

You can get thread numbers by running the tool with npm run-script tool -- --list-threads. Make sure you've filled in the config.yaml first with your facebook details.

Contributing

This was a quick half day hack for me so I won't be developing this into a full bridge just yet. PRs are welcome and a full review will be given.

matrix-fb-chat's People

Contributors

half-shot avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.