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?