summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/echo_client.py13
1 files changed, 13 insertions, 0 deletions
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