summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/requests
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-02-26 01:11:04 +0100
committerRobert Pösel <robyer@seznam.cz>2017-02-26 01:15:58 +0100
commit33c7f1e7bc3517df2ea45bc68a164b6380167072 (patch)
tree445522d9529da339410667740ac633e964bd771d /protocols/FacebookRM/src/requests
parentb1f71f7bdf6d126d888ce06770a5a26fa422cb15 (diff)
Facebook: Load birthday on refresh contact details (fixes #642)
Diffstat (limited to 'protocols/FacebookRM/src/requests')
-rw-r--r--protocols/FacebookRM/src/requests/profile.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/requests/profile.h b/protocols/FacebookRM/src/requests/profile.h
index a620cc237a..d3845e4e96 100644
--- a/protocols/FacebookRM/src/requests/profile.h
+++ b/protocols/FacebookRM/src/requests/profile.h
@@ -78,4 +78,18 @@ public:
}
};
+// request mobile page containing user profile by his id, and in english language (for parsing data)
+class ProfileInfoRequest : public HttpRequest
+{
+public:
+ ProfileInfoRequest(bool mobileBasicWorks, const char *userId) :
+ HttpRequest(REQUEST_GET, FORMAT, "%s/profile.php", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE)
+ {
+ Url
+ << CHAR_VALUE("id", userId)
+ << "v=info"
+ << "locale=en_US";
+ }
+};
+
#endif //_FACEBOOK_REQUEST_PROFILE_H_