Unable to complete SASL Auth

56 views
Skip to first unread message

Guy

unread,
Mar 23, 2011, 10:19:06 PM3/23/11
to jaxl
I keep getting "Unable to complete SASL Auth" message.

I pretty much only follow the instructions.

$jaxl = new JAXL(array
(
'user' => $fb_user['fb_user_id'], // . '@chat.facebook.com'
'pass' => '',
'host' => 'chat.facebook.com',
'domain' => 'chat.facebook.com',
'authType' => 'X-FACEBOOK-PLATFORM',
'logPath' => fb_join_path(FB_DIR, 'JAXL_temp', 'log'),
'pidPath' => fb_join_path(FB_DIR, 'JAXL_temp', 'pid'),
'mode' => 'cli',
'logLevel' => 4,
));

function post_auth($pay_load, $jaxl)
{
die(var_dump( 'auth success!' ));

$jaxl->sendMessage('14502...@chat.facebook.com', 'Hello World');

$jaxl->shutdown();
}

function get_facebook_key()
{
global $settings, $fb_user, $session;

return array
(
$settings['app_secret'],
$settings['app_id'],
$session['access_token'],
);
}

// Register callback on required hooks
$jaxl->addPlugin('jaxl_get_facebook_key', 'get_facebook_key');
$jaxl->addPlugin('jaxl_post_auth', 'post_auth');

// Fire start Jaxl core
$jaxl->startCore('stream');


I am using latest (2.1.2rc1) JAXL version. Any idea?

Abhinav Singh

unread,
Mar 25, 2011, 5:37:48 AM3/25/11
to jaxl
Hi Kuizi,

Do you have xmpp_login permissions for user session key?
If not kindly use that.

Let me know how it goes.
Unable to complete SASL auth means you have one of the input parameter
wrong.

On Mar 24, 7:19 am, Guy <g.kuizi...@gmail.com> wrote:
> I keep getting "Unable to complete SASL Auth" message.
>
> I pretty much only follow the instructions.
>
> $jaxl = new JAXL(array
> (
>         'user'          => $fb_user['fb_user_id'], //  . '...@chat.facebook.com'
>         'pass'          => '',
>         'host'          => 'chat.facebook.com',
>         'domain'        => 'chat.facebook.com',
>         'authType'      => 'X-FACEBOOK-PLATFORM',
>         'logPath'       => fb_join_path(FB_DIR, 'JAXL_temp', 'log'),
>         'pidPath'       => fb_join_path(FB_DIR, 'JAXL_temp', 'pid'),
>         'mode'          => 'cli',
>         'logLevel'      => 4,
> ));
>
> function post_auth($pay_load, $jaxl)
> {
>         die(var_dump( 'auth success!' ));
>
>         $jaxl->sendMessage('1450222...@chat.facebook.com', 'Hello World');
Reply all
Reply to author
Forward
0 new messages