gave92 / fbchat-sharp

Facebook Messenger client library for C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Verbosity Setting

NobleAscent opened this issue · comments

I have been trying to login serveral times however I get nothing apart from a simple false boolean. Is there any way to debug why the login is failing? I have tried to use the example project as well but it also fails to login. I have checked email and password multiple times.
Regards

On my first try, I got the same issue. When I accessed the account using a web browser, Facebook disabled the account due to some kind of "malicious log-in". I just verified that it was me and it cleared the issue on my end.

I fixed the issue by updating the nuget packages for both the projects to the latest version. Gave is there any way to use App Passwords with this project?

Hello gave92. i trying using fbchat-sharp to login facebook but this don't working. I saw your example but i don't understand. Please tell to me how to login facebook using fbchat-sharp? thank you so much.!
My code :
namespace indox
{
class Program
{

	public static void Main(string[] args)
	{
		Client client = new Client();
		var Login=  client.doLogin("minhhoang2704","ngatran197");
		var Check= client.isLoggedIn();
		Console.WriteLine(Check.Result);
	}
}

}
Result : false

@NobleAscent glad to hear it works. There is currently no support for 2FA. Never tested with App Passwords though, you just can try to client.doLogin("usarname","AppPassword");

@gave92 The library does not work with App Passwords. It throws the Error Check Login exception. :(
@shinshin197 Please read the output when debugging. It should tell you why it might fail.

@NobleAscent thank you for the feedback. Nuget package version 0.2.4 has now support for 2FA. App Password does not work but you can just provide the 2FA code you get from SMS/Authenticator app/...