1. Home
  2. Linux
  3. Connect facebook messenger to discord linux

How to connect Facebook Messenger to Discord on Linux

Miscord is a sophisticated tool that can connect Facebook Messenger to Discord. With it, you can take your Facebook account and send/receive messages inside a private Discord server and each message thread you have on Facebook Messenger is set in separate channels on a Discord server for organizational purposes.

Note: Miscord is unstable software and may not work correctly for you. Use at your own risk!

Before we begin

The Miscord tool can be used to bridge a connection from Facebook to the Discord client. Miscord doesn’t include the Discord application itself, so to use the software, please ensure that you already have Discord set up on your Linux PC.

Need to install the Discord application on Linux but unsure how to do so? Go ahead and check out our in-depth tutorial! In it, we go over how to install the app in a multitude of ways.

Install Miscord

On Linux, Miscord is easy to install thanks to the NPM tool that comes with NodeJS. However, NodeJS/NPM isn’t commonly shipped with Linux distributions, so before attempting to use NPM to install Miscord, you must set up NPM. Open up a terminal window and follow the instructions to get NPM working on your Linux distribution.

Note: don’t want to install Miscord via NPM? Grab it from the Snap store with sudo snap install miscord.

Ubuntu

sudo apt install npm

Debian

su -
apt-get install curl
curl -sL https://deb.nodesource.com/setup_11.x | bash -
apt-get install -y nodejs

Arch Linux

sudo pacman -S npm

Fedora

sudo dnf install npm

OpenSUSE

sudo zypper install npm

With NPM up and running on your Linux computer, it’s time to get the Miscord bridge installed. Open up a terminal window and enter the command below.

sudo npm install miscord -g

Installing Miscord on your Linux PC is quick, and you’ll see the terminal prompt fly by. When it’s done, the installation portion of the guide is complete!

Discord bot for Miscord

Connecting Facebook to the Discord app requires setting up a bot. To make things easy, follow the step-by-step process below. Please note that you must have a Discord server set up to use Miscord.  You can make a new server by clicking the “+” sign on the left-hand side of the Discord client.

Step 1: Log in to your Discord account online. Then, open up the Bot page.

Step 2: Find the “create application” button and click it to create a new application.

Step 3: Fill out the information for your new Facebook/Discord bot and copy “client” ID to a text file for later.

Step 4: Click the “Save changes” button. Then find the “bot” tab and select it.

Step 5: In the bot tab, select the “Add bot” button to create a new user for your application.

Step 6: Under the bot tab, enter a username. Then, scroll down to “Bot Permissions” and make them identical to the one in the picture below.

Step 7: Edit the URL below and replace the “your ID here” (without parenthesis) with the client ID you saved from step 3.

https://discordapp.com/api/oauth2/authorize?client_id=(your id here)&permissions=805829712&scope=bot

Step 8: Select your Discord server in the drop-down menu. Then, click “authorize” to add the Miscord bot.

Step 9: Go back to the Discord developer page and click on the bot-tab. Then, select “click to reveal token” and copy the newly generated token to a text file.

Set up the Miscord configuration

The bot is working. Now you must generate a new configuration file. Like the bot setup process, there are a lot of complicated steps to get it going. For this reason, we’ll go over how to configure everything. Follow the step-by-step instructions below.

Step 1: Head over to the Miscord configuration website.

Step 2: Click “import” configuration file, and use the file browser to navigate to /home/username/.config/Miscord/.

Step 3: In /home/username/.config/Miscord/, import the “config.json” file to the website.

Step 4: On the configuration page, fill out all the information necessary, such as your FB email, password, add in the bot’s token saved, etc.

Step 5: With your details filled,  click the “generate config” button and get the code.

Step 6: Clear out the config file with the echo command.

echo ' ' > ~/.config/Miscord/config.json

Step 7: Open up the “config.json” file in Nano.

nano ~/.config/Miscord/config.json

Step 8: Paste the code generated on the Miscord configuration page into Nano. Then, save by pressing Ctrl + O.

Facebook Messenger/Discord bridge

After countless steps and a lot of configuration, your FB/Discord bridge is ready to use, and each time someone sends you something on Facebook, it’ll show up in a dedicated channel on the Discord server. Please understand that Miscord is experimental technology, and you likely will have issues running the software in some cases.

To use the Miscord FB bridge, launch a terminal and run the miscord command, then open up Discord on Linux. As it runs, messages from individual users and groups will start to show up in different channels created by the bot.

miscord

Respond in the channel to the user you’d like to talk to over FB, and the Miscord bridge will deliver messages back and forth.

Closing Miscord

Need to close the Facebook Messenger Bridge? Press Ctrl + C in the terminal window and terminate the Miscord session. Then, close the terminal by entering exit.

1 Comment