title: Send a Facebook Message with XMPP using Access Tokens in Python
body: <p>This is a very specific question, but I cannot find any documentation on how I can do it. The Facebook Documentation is <a href="https://developers.facebook.com/docs/chat/#platauth" rel="nofollow">pretty vague</a> with some <em>horrible</em> and useless PHP examples (really, it's code like the Facebook PHP Sample Code that make people think PHP sucks)  but I cannot find anything around for Python.</p>
  
  <p>I can't even work out how to apply the same principles from the PHP sample code into a Python world. The xmpppy and SleekXMPP docs are a bit bare (or <a href="http://sleekxmpp.com/sasl.html" rel="nofollow">broken</a>) and Google only shows examples of people using passwords.</p>
  
  <p>I have the access tokens coming from the database, I have no interest in spawning a browser to find stuff, or doing anything else to find a token. I have them, consider it a hardcoded string. I want to pass that string to XMPP and send a message, that is the whole scope of things.</p>
  
  <p>Any suggestions?</p>