From 9307a6915f9e7e9d34dc561021e7dd10fb3cf5cd Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 23 Jun 2012 22:30:24 -0700 Subject: Add notes to echo_client.py example on working with Facebook and MSN. --- examples/echo_client.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'examples') diff --git a/examples/echo_client.py b/examples/echo_client.py index 7e553c4a..73990089 100755 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -122,6 +122,19 @@ if __name__ == '__main__': xmpp.register_plugin('xep_0060') # PubSub xmpp.register_plugin('xep_0199') # XMPP Ping + # If you are connecting to Facebook and wish to use the + # X-FACEBOOK-PLATFORM authentication mechanism, you will need + # your API key and an access token. Then you'll set: + # xmpp.credentials['api_key'] = 'THE_API_KEY' + # xmpp.credentials['access_token'] = 'THE_ACCESS_TOKEN' + + # If you are connecting to MSN, then you will need an + # access token, and it does not matter what JID you + # specify other than that the domain is 'messenger.live.com', + # so '_@messenger.live.com' will work. You can specify + # the access token as so: + # xmpp.credentials['access_token'] = 'THE_ACCESS_TOKEN' + # If you are working with an OpenFire server, you may need # to adjust the SSL version used: # xmpp.ssl_version = ssl.PROTOCOL_SSLv3 -- cgit v1.2.3