mautrix / facebook

A Matrix-Facebook Messenger puppeting bridge
https://matrix.to/#/#facebook:maunium.net
GNU Affero General Public License v3.0
390 stars 65 forks source link

Login issue: Your account is temporarily unavailable. #286

Open mhupfauer opened 1 year ago

mhupfauer commented 1 year ago

Hi *,

the login command returns the following error:

Error from Messenger: Your account is temporarily unavailable. Regain access by updating the app or logging in from a mobile or web browser.

Trying to log in via the bridge instantly drops all non web devices from Facebook and forces a password reset. Any idea how to fix that?

benedikt-bartscher commented 1 year ago

same here. Did you enable 2fa? https://docs.mau.fi/bridges/python/facebook/authentication.html

Note that in some cases, Facebook might decide your account has suspicious activity and block you until you do some tasks like adding a phone number or resetting your password. In most cases, enabling two-factor authentication solves this. If that doesn't help, hosting the bridge at home or making it proxy all traffic through a residential IP can help further reduce suspiciousness. The bridge can run separately from Synapse, e.g. on a Raspberry Pi. It can also use the http_proxy environment variable for all Facebook traffic.
ReggieMarr commented 1 year ago

I have the same issue. Even after enabling 2fa it just keeps saying theres suspcious activity

mhupfauer commented 1 year ago

2fa is enabled and all the security things like phone number etc is verified.

DoM1niC commented 1 year ago

similar Problem but here I get everytime

GOT NON-JSON RESPONSE WITH STATUS 400: <!DOCTYPE HTML> <HTML LANG="EN" ID="FACEBOOK"> <HEAD> <TITLE>FACEBOOK | ERROR</TITLE> <META CHARSET="UTF-8"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-STORE"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="MAX-AGE=0"> <META HTTP-EQUIV="EXPIRES" CONTENT="-1"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW"> <STYLE> HTML, BODY { COLOR: #141823; BACKGROUND-COLOR: #E9EAED; FONT-FAMILY: HELVETICA, LUCIDA GRANDE, ARIAL, TAHOMA, VERDANA, SANS-SERIF; MARGIN: 0; PADDING: 0; TEXT-ALIGN: CENTER; } #HEADER { HEIGHT: 30PX; PADDING-BOTTOM: 10PX; PADDING-TOP: 10PX; TEXT-ALIGN: CENTER; } #ICON { WIDTH: 30PX; } H1 { FONT-SIZE: 18PX; } P { FONT-SIZE: 13PX; } #FOOTER { BORDER-TOP: 1PX SOLID #DDD; COLOR: #9197A3; FONT-SIZE: 12PX; PADDING: 5PX 8PX 6PX 0; } </STYLE> </HEAD> <BODY> <DIV ID="HEADER"> <A HREF="//WWW.FACEBOOK.COM/"> <IMG ID="ICON" SRC="//STATIC.FACEBOOK.COM/IMAGES/LOGOS/FACEBOOK_2X.PNG" /> </A> </DIV> <DIV ID="CORE"> <H1 ID="SORRY">SORRY, SOMETHING WENT WRONG.</H1> <P ID="PROMISE"> WE'RE WORKING ON IT AND WE'LL GET IT FIXED AS SOON AS WE CAN. </P> <P ID="BACK-LINK"> <A ID="BACK" HREF="//WWW.FACEBOOK.COM/">GO BACK</A> </P> <DIV ID="FOOTER"> FACEBOOK <SPAN ID="COPYRIGHT"> &COPY; 2022 </SPAN> <SPAN ID="HELP-LINK"> &#183; <A ID="HELP" HREF="//WWW.FACEBOOK.COM/HELP/">HELP CENTER</A> </SPAN> </DIV> </DIV> <SCRIPT> DOCUMENT.GETELEMENTBYID('BACK').ONCLICK = FUNCTION() { IF (HISTORY.LENGTH > 1) { HISTORY.BACK(); RETURN FALSE; } }; // ADJUST THE DISPLAY BASED ON THE WINDOW SIZE IF (WINDOW.INNERHEIGHT < 80 || WINDOW.INNERWIDTH < 80) { // BLANK IF WINDOW IS TOO SMALL DOCUMENT.BODY.STYLE.DISPLAY = 'NONE'; }; IF (WINDOW.INNERWIDTH < 200 || WINDOW.INNERHEIGHT < 150) { DOCUMENT.GETELEMENTBYID('BACK-LINK').STYLE.DISPLAY = 'NONE'; DOCUMENT.GETELEMENTBYID('HELP-LINK').STYLE.DISPLAY = 'NONE'; }; IF (WINDOW.INNERWIDTH < 200) { DOCUMENT.GETELEMENTBYID('SORRY').STYLE.FONTSIZE = '16PX'; }; IF (WINDOW.INNERWIDTH < 150) { DOCUMENT.GETELEMENTBYID('PROMISE').STYLE.DISPLAY = 'NONE'; }; IF (WINDOW.INNERHEIGHT < 150) { DOCUMENT.GETELEMENTBYID('SORRY').STYLE.MARGIN = '4PX 0 0 0'; DOCUMENT.GETELEMENTBYID('SORRY').STYLE.FONTSIZE = '14PX'; DOCUMENT.GETELEMENTBYID('PROMISE').STYLE.DISPLAY = 'NONE'; }; </SCRIPT> </BODY> </HTML>

nisegami commented 1 year ago

2fa is enabled and all the security things like phone number etc is verified.

Same here.

pernik36 commented 11 months ago

I've had this issue. 2FA alone did not help to me. I managed to get this working by spinning up a web browser (I have used brow.sh) on the system with the bridge and logging in FB and Messenger multiple times in a span of 4 days. I think this was neccessary because I use a VPS to run the bridge.