diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-03-15 10:22:11 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-03-15 10:22:11 +0000 |
commit | 7846764cedc3ebc2827e891d683fec31e2149baa (patch) | |
tree | 1cb561f95f6d46e7f62ccd022637b5bc9bf78065 /protocols/FacebookRM/src/communication.cpp | |
parent | 9ba2c4ec23e4079b69988719b56d8dd2f5d132ae (diff) |
Facebook: use clientid parameter in channel requests (fixes #536), version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@8613 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 6168a26f8c..53e2bd08a8 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -499,7 +499,9 @@ std::string facebook_client::choose_action(RequestType request_type, std::string std::string action = "/pull?channel=" + (this->chat_channel_.empty() ? "p_" + self_.user_id : this->chat_channel_);
action += "&seq=" + (this->chat_sequence_num_.empty() ? "0" : this->chat_sequence_num_);
action += "&partition=" + (this->chat_channel_partition_.empty() ? "0" : this->chat_channel_partition_);
- action += "&clientid=&cb=&idle=0&state=active";
+ action += "&clientid=" + this->chat_clientid_;
+ action += "&cb=" + utils::text::rand_string(4, "0123456789abcdefghijklmnopqrstuvwxyz");
+ action += "&idle=0&state=active";
if (!this->chat_sticky_num_.empty())
action += "&sticky_token=" + this->chat_sticky_num_;
|