lhost / sendxmpp

perl-script to send xmpp (jabber), similar to what mail(1) does for mail.
63 stars 22 forks source link

Sending messages to facebook, No SASL mechanism found #2

Closed thbley closed 9 years ago

thbley commented 11 years ago

I'm using the github master on Ubuntu 12.10.

echo hallo | ./sendxmpp -v -t someother.user@facebook.com sendxmpp: config: 'password' => 'somepw' sendxmpp: config: 'component' => 'chat.facebook.com' sendxmpp: config: 'jserver' => 'chat.facebook.com' sendxmpp: config: 'port' => '0' sendxmpp: config: 'username' => 'someuser' sendxmpp: ssl_verify: 1 sendxmpp: tls_ca_path: sendxmpp: Connect: 1 No SASL mechanism found at /usr/share/perl5/Authen/SASL.pm line 77 at /usr/share/perl5/XML/Stream.pm line 2155

/root/.sendxmpprc: someuser@chat.facebook.com somepw chat.facebook.com

I have installed libauthen-sasl-perl 2.1500-1

In /usr/share/perl5/Authen/SASL/Perl I have: ANONYMOUS.pm CRAM_MD5.pm DIGEST_MD5.pm EXTERNAL.pm GSSAPI.pm LOGIN.pm PLAIN.pm

Do you have any ideas how to solve this issue? Thanks!

(Google Talk is working without any problems)

nicolas-raoul commented 9 years ago

I use Pidgin successfully with Facebook, and notice Pidgin uses this username format:

-100006230325259@chat.facebook.com

100006230325259 is the Facebook id of the person. Yes, the id contains a - caracter, so I guess it must be escaped so that bash does not interfer with it. Maybe using the same format in your command line would work better?

ddurdle commented 9 years ago

My user ID doesn't have a - in it, and numeric@chat.facebook.com worked for me just now.

ddurdle commented 9 years ago

echo hello | sendxmpp -v -t #######@chat.facebook.com sendxmpp: config: 'password' => 'PASSWORD' sendxmpp: config: 'component' => 'chat.facebook.com' sendxmpp: config: 'jserver' => 'chat.facebook.com' sendxmpp: config: 'port' => '0' sendxmpp: config: 'username' => '#######' sendxmpp: Connect: 1 sendxmpp: AuthSend: ok sendxmpp: MessageSend sendxmpp: Disconnect