kissrobber / xmpp4r_facebook

facebook chat(xmpp). X-FACEBOOK-PLATFORM SASL for ruby xmpp4r
31 stars 15 forks source link

Wasn't able to use #1

Closed sergeych closed 12 years ago

sergeych commented 12 years ago

Did everythin as stated in readme - xmpp4r_facebook.rb:103:in `auth': not-authorized (RuntimeError). acess token, api key and secret are fresh and working (checked twice)

kissrobber commented 12 years ago

Hm Do you have the permission 'xmpp_login'? http://developers.facebook.com/docs/authentication/permissions/

sergeych commented 12 years ago

oops :) well when I add the perm, now it passes with no error but I can't see any messages. Is it possible to send a message to myself?

28.03.2012, 5:16, kissrobber ():

Hm Do you get the permission 'xmpp_login'? http://developers.facebook.com/docs/authentication/permissions/


Reply to this email directly or view it on GitHub: https://github.com/kissrobber/xmpp4r_facebook/issues/1#issuecomment-4747025

sergeych commented 12 years ago

well it was kinda pause with fb - now it works like a charm. thanks :)

jdjkelly commented 12 years ago

@sergeych How did you resolve not being able to see any messages?

kissrobber commented 12 years ago

Specifically what is your problem?

sergeych commented 12 years ago

It was actually a problem in my fb-login code, where xmpp right was not always requested. Sorry. Now it works fine

kissrobber commented 12 years ago

Sorry, I replied to the other guy(jdjkelly) not you(sergeych) :)

sergeych commented 12 years ago

Btw, in the sample code there is a mistype that can confuse:

to = '-chat.facebook.com'

should be

to = '-@chat.facebook.com'

Actually I'd rewrite it in a more rubyish way:

to = '-#{user_id}@chat.facebook.com'