summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/contacts.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-02-12 01:58:23 +0000
committerRobert Pösel <robyer@seznam.cz>2016-02-12 01:58:23 +0000
commitf49eebc1d4c1278286afff0996a28ff8b6a3ebdf (patch)
tree88c557f1282e99f76e8d85654472070de3d42ed9 /protocols/FacebookRM/src/contacts.cpp
parent33060f2573e523ed0895c17eb649acb9ee0f9f2f (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/contacts.cpp')
-rw-r--r--protocols/FacebookRM/src/contacts.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp
index 1105e28b58..0aec3fcaa0 100644
--- a/protocols/FacebookRM/src/contacts.cpp
+++ b/protocols/FacebookRM/src/contacts.cpp
@@ -223,7 +223,7 @@ void FacebookProto::LoadContactInfo(facebook_user* fbu)
data += "&ttstamp=" + facy.ttstamp_;
data += "&__rev=" + facy.__rev();
- http::response resp = facy.flap(REQUEST_USER_INFO, &data); // NOTE: Request revised 1.9.2015
+ http::response resp = facy.flap(REQUEST_USER_INFO, &data); // NOTE: Request revised 11.2.2016
if (resp.code == HTTP_CODE_OK) {
CODE_BLOCK_TRY
@@ -288,7 +288,12 @@ void FacebookProto::LoadChatInfo(facebook_chatroom *fbc)
// request info about thread
data += "&threads[thread_ids][0]=" + thread_id;
- http::response resp = facy.flap(REQUEST_THREAD_INFO, &data); // NOTE: Request revised 1.9.2015
+ // TODO: ABILITY TO DEFINE TIMESTAMP! (way to load history since specific moment? ... offset seems to does nothing at all)
+ /* messages[user_ids][<<userid>>][offset]=11
+ messages[user_ids][<<userid>>][timestamp]=1446369866009 // most recent message has this timestamp (included)
+ messages[user_ids][<<userid>>][limit]=20 */
+
+ http::response resp = facy.flap(REQUEST_THREAD_INFO, &data); // NOTE: Request revised 12.2.2016
if (resp.code != HTTP_CODE_OK) {
facy.handle_error("LoadChatInfo");