Skip to content
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

Unfinished updates for new Facebook API #10

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
1486f58
WIP
toropanov Apr 6, 2018
ecafdec
Start converting bot to telegrem-bot-api
Apr 16, 2018
f0d20d6
fix dep
Apr 16, 2018
d28c5f6
Fixes, correct varname
Apr 16, 2018
ec8e624
Fix token
Apr 16, 2018
1ebe004
debug
Apr 16, 2018
5ee10b7
dev
Apr 16, 2018
1adbf45
fixes
Apr 16, 2018
fdf2cdd
debug info
Apr 16, 2018
f567544
fixes
Apr 16, 2018
4b81102
fixes
Apr 16, 2018
2a76dc7
fixes
Apr 16, 2018
6e3cb69
fix
Apr 16, 2018
205b52f
fix
Apr 16, 2018
71b5646
debug info
Apr 16, 2018
96b920c
logic fix
Apr 16, 2018
2c14fd1
dev
Apr 16, 2018
0c13249
fix variable scope
Apr 16, 2018
1454d7f
Appropriate location for usage info
Apr 16, 2018
f8a3ee9
debug info
Apr 16, 2018
b662bfc
switch to dev version of facebook api lib
Apr 16, 2018
9b1bd8d
new parameters for getThreadList
Apr 16, 2018
1547391
Timestamp default value
Apr 16, 2018
5bc8441
null means before NOW
Apr 16, 2018
4594a7a
Replacement for seemingly broken call
Apr 16, 2018
e2b8094
Conversation fixes
Apr 16, 2018
fab777d
fix getUserInfo
Apr 16, 2018
8a59dc6
fix
Apr 16, 2018
d10560d
more fixes
Apr 16, 2018
10338c9
Sticker support
Apr 17, 2018
160474d
Correct API for file downloading
Apr 17, 2018
590f4b9
Fixes
Apr 17, 2018
a32e158
old standards
Apr 17, 2018
7e6f40b
Reverting to correct logic error
Apr 17, 2018
8a0f179
Filter commands from chat
Apr 17, 2018
630bea0
debug info
Apr 17, 2018
402be67
correct promise
Apr 18, 2018
44b3948
fixes and debug info
Apr 19, 2018
763f9ae
update README.md with the rigth dependencies
May 29, 2018
730055d
Merge pull request #1 from vucodil/master
Kreastr Jun 1, 2018
56595ee
Fix attachments
gardenappl Jun 29, 2018
a181ee3
No longer neccessary to specify working directory.
gardenappl Jun 30, 2018
ce1a311
Merge pull request #2 from goldenapple3/master
Kreastr Jul 2, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,24 @@ A Facebook bot for Telegram.

## Install
- Create your Telegram bot, follow the instruction [here](https://core.telegram.org/bots#3-how-do-i-create-a-bot).
- Clone this repository and install nodejs package.
- Clone this repository.
- Install nodejs package.
```
git clone https://github.com/Liryna/FacebookBot.git
cd FacebookBot
npm install
```
- Create the configuration file `config.json`.
```
{
"email": "YOUR EMAIL",
"password": "YOUR PASSWORD",
"dir": "FacebookBot DIRECTORY"
}
```

##Usage
- This bot require some additional information in the your environment variables.
- This bot requires some additional information in your environment variables.
```
TELEGRAM_USER="your telegram login"
APP_TOKEN="the token of your bot that BotFather gave you"
TELEGRAM_USER_ID="your telegram user id"
TELEGRAM_TOKEN="the token of your bot that BotFather gave you"
FACEBOOK_USERNAME="your facebook username"
FACEBOOK_PASSWORD="your facebook password"
```
- Run it.
```
TELEGRAM_USER="Mario" APP_TOKEN="TOKEN" node facebookbot.js
node facebookbot.js
```
- The bot cannot establish a conversation to you directly, you need to write him first. Use your Telegram Client to say him "Hello".
- The Available commands to send to your bot:
Expand All @@ -39,4 +34,4 @@ TELEGRAM_USER="Mario" APP_TOKEN="TOKEN" node facebookbot.js

## Dependencies

This bot use [Schmavery/facebook-chat-api](https://github.com/Schmavery/facebook-chat-api) and [depoio/node-telegram-bot](https://github.com/depoio/node-telegram-bot).
This bot use [ravkr/facebook-chat-api](https://github.com/ravkr/facebook-chat-api) and [yagop/node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api).
Loading