summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/requests/profile.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/requests/profile.h')
-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_