From 7cdb740b6e7599cb626deb2161aa3ab07b252e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 5 Jun 2015 07:37:27 +0000 Subject: Facebook: New feature to notify "On this day" posts at login; version bump Right now it notify at every login, max. last 20 posts. In future I'll probably add more options to limit number of posts and do it only one per day, etc. git-svn-id: http://svn.miranda-ng.org/main/trunk@14006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'protocols/FacebookRM/src/communication.cpp') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 1bc95ff696..fde25c036f 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -261,6 +261,7 @@ std::string facebook_client::choose_server(RequestType request_type) // case REQUEST_CANCEL_FRIENDSHIP: // case REQUEST_FRIENDSHIP: // case REQUEST_UNREAD_THREADS: + // case REQUEST_ON_THIS_DAY: default: return FACEBOOK_SERVER_REGULAR; } @@ -488,6 +489,15 @@ std::string facebook_client::choose_action(RequestType request_type, std::string case REQUEST_TYPING_SEND: return "/ajax/messaging/typ.php?__a=1"; + case REQUEST_ON_THIS_DAY: + { + std::string action = "/onthisday/story/query/?__a=1"; + if (get_data != NULL) { + action += "&" + (*get_data); + } + return action; + } + default: return "/?_fb_noscript=1"; } -- cgit v1.2.3