Giter VIP home page Giter VIP logo

toofake's Introduction

TooFake: a bereal viewer & web client

want to stalk your friends, family, or ex without posting your own bereal?
toofake gives the ability to view & download bereals, and post custom bereals & realmojis without ever having to click on that annoying notification


current status: IFFY - help wanted!

BeReal will only continue to change and get more advanced, breaking projects like toofake & befake. The open source community has kept this project going for very long & hopefully can for much longer! Any Pull Requests or changes are always happily welcomed!


how to run locally

node

  • clone the project git clone https://github.com/s-alad/toofake.git
  • cd into the /client directory cd client
  • run npm install
  • run npm run dev

docker


TODO

  • fix webp, .heic and .heif image issues !!!
  • delete comment ability
  • add instant realmoji
  • react-all realmoji
  • not all friends show for big friends list
  • feed not fetching for big friends list
  • fix occasional login 500 errors
  • change state & login management
  • cache things and use less requests
  • move things to proxy?
  • fix overused state and spaghetti code

Peers

toofake owes a lot to the open source community & great peer projects that have been cease & desisted:

shoutout to rvaidun's befake for many parts of the reverse engineering!

shoutout to the community at BeFake for exposing many of the api endpoints!

heavily inspired by shomil


toofake's People

Contributors

adriadam10 avatar allanf181 avatar ishemine avatar ja-guerrero avatar noctu1412 avatar retoheusser avatar rian-kh avatar s-alad avatar saqif-abedin avatar simongermani avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

toofake's Issues

Forever loading

Error when app start usually update the Page works but in the last two weeks i cant see a post because is forever loading

Loading forever

Hey,

It's just loading forever after logging in...
2023-02-14 at 14 31 41@2x

Could this be because I have a lot of friends there? Not sure how many, but likely a few hundred.

Question: How to reliably receive a BeReal notification

The Android app does a very bad job in delivering the BeReal notification in time, so I wonder if it's possible to know that the 2-minute interval is started for my timezone?

You may have noticed some kind of API for that, maybe it's something similar to websockets or long-polling REST endpoint, or at least an endpoint that informs whether the BeReal time has come or not...

My goal is to create a telegram bot that will alert me and my friends that the BeReal time has come. Can I ask you to give my some clues about their internals? I guess I have no chance to capture the original firebase push out of my phone, so I'm searching for other options...

Security Issue - Publicly Exposed API Key

In api.py your google api key is exposed.
image
It might be a good idea to use environment variables like in parse.py. Anyone with the source code can now make firebase api calls with your key- might end up costing you money (https://cloud.google.com/docs/authentication/api-keys#securing). Once this has changed you might also want to revoke the old api key and set a new one- given that the old one will still be exposed through git commits.

Vercel has functionality to add env variables for running the production site (https://vercel.com/docs/concepts/projects/environment-variables)

Getting 'APP_NOT_VERIFIED' when trying to sign in via phone number

GET /sendotp/{phone number} HTTP/1.1 logs the following error that it is getting from the remote server:

{
    "error": {
        "code": 400,
        "message": "APP_NOT_VERIFIED",
        "errors": [
            {
                "message": "APP_NOT_VERIFIED",
                "domain": "global",
                "reason": "invalid"
            }
        ]
    }
}

Do you know how to fix this? Is any environment variable or token missing that's required for the login?

Error message when attempting login

ERROR:
{"statusCode":400, "errorKey": null, "data" :null, "fields" :null, "timestamp".:"202
08-
04T13:54:57.2147", "requestld":"c46f8af1e534832a54a633ad8426a814"}
Failed with Vonage login provider, re-trying to login with Firebase...

View friends posts

right now, TooFake doesn't show BeReals when I click on a friend's profile. would be cool to have that. maybe also view anyone's bereal?

BeReal map

Can you bring back the BeReal map like BeFake did? It shows a map of where each BeReal is taken.

Not able to put in phone number and click send

Keep getting this error when putting in phone number and click send:

ERROR: {"statusCode":429,"errorKey":null,"data":null,"fields":null,"timestamp":"2023-07-15T21:42:20.480Z","requestId":"

Quota exceeded

On button click send:

{'error': {'code': 400, 'message': 'QUOTA_EXCEEDED : Exceeded quota.', 'errors': [{'message': 'QUOTA_EXCEEDED : Exceeded quota.', 'domain': 'global', 'reason': 'invalid'}]}}

cant run 'npm run dev' when running toofake locally

Hi i have an error when i run 'npm run dev' or 'npm start' even after sucessfully run 'npm install'.
got this error message :
npm ERR! Missing script: "dev"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\me\AppData\Local\npm-cache_logs\2023-09-03T20_06_33_642Z-debug-0.log

I have tried to run 'npm run' it does nothing

and here is the full log :

0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 7ms
4 timing config:load:defaults Completed in 9ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 8ms
6 timing config:load:builtin Completed in 8ms
7 timing config:load:cli Completed in 8ms
8 timing config:load:env Completed in 2ms
9 timing config:load:file:C:\Users\me\Downloads\toofake-main.npmrc Completed in 0ms
10 timing config:load:project Completed in 6ms
11 timing config:load:file:C:\Users\me.npmrc Completed in 1ms
12 timing config:load:user Completed in 2ms
13 timing config:load:file:C:\Users\me\AppData\Roaming\npm\etc\npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:setEnvs Completed in 5ms
16 timing config:load Completed in 45ms
17 timing npm:load:configload Completed in 46ms
18 timing npm:load:mkdirpcache Completed in 1ms
19 timing npm:load:mkdirplogs Completed in 1ms
20 verbose title npm run dev
21 verbose argv "run" "dev"
22 timing npm:load:setTitle Completed in 6ms
23 timing config:load:flatten Completed in 14ms
24 timing npm:load:display Completed in 17ms
25 verbose logfile logs-max:10 dir:C:\Users\me\AppData\Local\npm-cache_logs\2023-09-03T20_06_33_642Z-
26 verbose logfile C:\Users\me\AppData\Local\npm-cache_logs\2023-09-03T20_06_33_642Z-debug-0.log
27 timing npm:load:logFile Completed in 25ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 106ms
31 silly logfile start cleaning logs, removing 6 files
32 timing command:run Completed in 30ms
33 verbose stack Error: Missing script: "dev"
33 verbose stack
33 verbose stack To see a list of scripts, run:
33 verbose stack npm run
33 verbose stack at RunScript.run (C:\Program Files\nodejs\node_modules\npm\lib\commands\run-script.js:99:13)
33 verbose stack at async module.exports (C:\Program Files\nodejs\node_modules\npm\lib\cli.js:134:5)
34 verbose cwd C:\Users\me\Downloads\toofake-main
35 verbose Windows_NT 10.0.19045
36 verbose node v18.16.0
37 verbose npm v9.5.1
38 error Missing script: "dev"
38 error
38 error To see a list of scripts, run:
38 error npm run
39 verbose exit 1
40 timing npm Completed in 278ms
41 verbose code 1
42 error A complete log of this run can be found in:
42 error C:\Users\me\AppData\Local\npm-cache_logs\2023-09-03T20_06_33_642Z-debug-0.log

Error 400 : INVALID_APP_CREDENTIAL

Hello , I tried many times to log in into befake but now it does not work and leave me Error 400 : INVALID_APP_CREDENTIAL . I have already managed to log in several times with my phone number and it has always worked .

cannot log in

simply says Failed with Vonage login provider, re-trying to login with Firebase...

React to all posts

Hi, can you implement a feature that lets us react to all posts made by friends? For example, thumbs up on all posts.

Thanks!

Report functionality

Hi! Found an inappropriate and malicious account when using an online and public temporary SMS verification service (quackr) along with this application. Turns out somebody else had already made an account on the number I chose, and I was logged in instead of registering for a new account, as only SMS-verification is needed. This account that was made and used by somebody else was highly inappropriate and malicious. In hindsight probably should not use online SMS-services for this, I just didnt want to bother to use my real phone as I wanted a disposable account that I could log out of and forget. Anyways, I quickly logged out when I discovered the account and reported it to BeReal - do I need to report it to this application too in any manner, or take any more action?

App not verified

Says app not verified when I try and send the verification code

unable to log in

anytime i enter my phone number it tells me to enter a one time passcode i don’t even know what it is but i didn’t get any codes and i entered all the passcodes that i know of and nothing works..

and on the befake when i enter my phone number it just says error

403 forbidden - not able to view a photos

After being able to log in to toofake -> the post will load without photos getting 403 error code in network console -> I guess they updated headers and we are not authorized to view the photos

🐛 : `sh: 1: react-scripts: not found` while running `npm start` in `client` directory.

npm start :

(base) hemang@hemang-HP-Pavilion-g6-Notebook-PC:~/Documents/GitHub/toofake/client$ npm start

> [email protected] start
> react-scripts start

sh: 1: react-scripts: not found

python ./api.py :

(base) hemang@hemang-HP-Pavilion-g6-Notebook-PC:~/Documents/GitHub/toofake/server$ python ./api.py 
 * Serving Flask app 'api'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5100
Press CTRL+C to quit
 * Restarting with watchdog (inotify)
 * Debugger is active!
 * Debugger PIN: 299-909-318

error during login

im trying to login using my phone number, but its not working. i only get- ERROR: {"statusCode":400,"errorKey":null,"data":null,"fields":null,"timestamp":"2023-07-18T20:47:00.670Z","requestId":"3cd4ba658e9c1f0f277960e63dd8ed00"}
Failed with Vonage login provider, re-trying to login with Firebase...
my region is Latvia

Login Broken APP_NOT_VERIFIED (UK number)

ERROR: {"statusCode":400,"errorKey":null,"data":null,"fields":null,"timestamp":"2023-07-23T18:39:26.300Z","requestId":"885c09627c958e0736a981ce449ac87a"}
Failed with Vonage login provider, re-trying to login with Firebase...

Cannot login

Trying to login and get the errors:

"ERROR: {"error":"Bad Request","statusCode":400,"message":"Bad Request","errorKey":"missing","data":null,"fields":null,"timestamp":"2023-08-28T15:08:40.038Z","requestId":"76d8aa7b384a49434eaae5c2668c142a"}"

"Failed with Vonage login provider, re-trying to login with Firebase..."

Error 400 : QUOTA_EXCEEDED

Hi , yep it's me again , I have a new problem when I try lo login with my Phone number in the website . It's give me a error 400 : quota exceeded . I saw that's someone already report this problem , but for me it doesn't work. I don't know if you know the max quota and if it's per day per week etc , for use the api .

Questions regarding API-usage

Hi - cool app! I was just wondering how https://toofake.lol/ works.

Are you only using API from BeReal, or are you adding extra functionality?

Do you store/log anything when users use https://toofake.lol/ (e.g. phone number used, verification code, IPs, posts)? Or is this done exclusively on BeReal-servers?

Thanks in advance! 😊

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.