diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-02-12 01:58:23 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-02-12 01:58:23 +0000 |
commit | f49eebc1d4c1278286afff0996a28ff8b6a3ebdf (patch) | |
tree | 88c557f1282e99f76e8d85654472070de3d42ed9 /protocols/FacebookRM/src/process.cpp | |
parent | 33060f2573e523ed0895c17eb649acb9ee0f9f2f (diff) |
Facebook: Update some requests format, changes for stickers and new support for sending stickers (send message "[[sticker:STICKER_ID]]")
git-svn-id: http://svn.miranda-ng.org/main/trunk@16272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 2699aec358..eb64a99f8f 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -176,7 +176,7 @@ void FacebookProto::ProcessFriendList(void*) data += "&ttstamp=" + facy.ttstamp_; data += "&__rev=" + facy.__rev(); - http::response resp = facy.flap(REQUEST_USER_INFO_ALL, &data); // NOTE: Request revised 1.9.2015 + http::response resp = facy.flap(REQUEST_USER_INFO_ALL, &data); // NOTE: Request revised 11.2.2016 if (resp.code != HTTP_CODE_OK) { facy.handle_error("load_friends"); @@ -616,7 +616,7 @@ void FacebookProto::SyncThreads(void*) debugLogA(" Facebook's milli timestamp for sync: %s", time.c_str()); - http::response resp = facy.flap(REQUEST_THREAD_SYNC, &data); // NOTE: Request revised 1.9.2015 + http::response resp = facy.flap(REQUEST_THREAD_SYNC, &data); // NOTE: Request revised 11.2.2016 if (resp.code != HTTP_CODE_OK || resp.data.empty()) { facy.handle_error("LoadLastMessages"); @@ -1092,16 +1092,18 @@ void FacebookProto::ProcessNotifications(void*) int count = FACEBOOK_NOTIFICATIONS_LOAD_COUNT; - std::string data = "__dyn=&__req=&__rev="; - data += "&__user=" + facy.self_.user_id; + std::string data = "__user=" + facy.self_.user_id; data += "&fb_dtsg=" + facy.dtsg_; data += "&cursor="; // when loading more data += "&length=" + utils::conversion::to_string(&count, UTILS_CONV_UNSIGNED_NUMBER); // number of items to load data += "&businessID="; // probably for pages? data += "&ttstamp=" + facy.ttstamp_; + data += "&__dyn=" + facy.__dyn(); + data += "&__req=" + facy.__req(); + data += "&__rev=" + facy.__rev(); // Get notifications - http::response resp = facy.flap(REQUEST_NOTIFICATIONS, &data); + http::response resp = facy.flap(REQUEST_NOTIFICATIONS, &data); // NOTE: Request revised 11.2.2016 if (resp.code != HTTP_CODE_OK) { facy.handle_error("notifications"); |