문제

How can I log to XMPP with Facebook access token instead of user's password? Is there any way? I read STH about SIG, but I don't know how it really looks like. I tried replace password with access token, doesn't work.

My code:

$conn = new XMPPHP_XMPP('chat.facebook.com', 5222,  $_POST['usr'], $p, 'xmpphp',               'chat.facebook.com', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_DEBUG); 

And I have to replace $p (password) with access token or STH, when I'm logged in?

도움이 되었습니까?

해결책

After several hours of researching and coding, I finally got it!

1) Download XMPPHP Library

2) Overwrite these 3 files - http://codejaw.com/2g73va7

Attention: This is a hack I made myself. So that XMPPHP version will only work with Facebook and only with Access Token. This will no longer work with others services or Facebook passwords.

Maybe some coder will use my work and make a full (non-hacked) version.

Enjoy!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top