diff options
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index c1b012672f..5ef0009d30 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -225,6 +225,7 @@ DWORD facebook_client::choose_security_level(RequestType request_type) // case REQUEST_DTSG:
// case REQUEST_BUDDY_LIST:
// case REQUEST_LOAD_FRIENDS:
+// case REQUEST_USER_INFO:
// case REQUEST_LOAD_REQUESTS:
// case REQUEST_SEARCH:
// case REQUEST_DELETE_FRIEND:
@@ -282,7 +283,8 @@ int facebook_client::choose_method(RequestType request_type) // case REQUEST_FEEDS:
// case REQUEST_NOTIFICATIONS:
// case REQUEST_RECONNECT:
-// case REQUEST_LOAD_FRIENDS:
+// case REQUEST_LOAD_FRIENDS:
+// case REQUEST_USER_INFO:
// case REQUEST_LOAD_REQUESTS:
// case REQUEST_SEARCH:
// case REQUEST_UNREAD_THREADS:
@@ -322,6 +324,7 @@ std::string facebook_client::choose_server(RequestType request_type, std::string case REQUEST_SEARCH:
case REQUEST_UNREAD_THREADS:
case REQUEST_UNREAD_MESSAGES:
+ case REQUEST_USER_INFO:
return FACEBOOK_SERVER_MOBILE;
// case REQUEST_LOGOUT:
@@ -378,6 +381,15 @@ std::string facebook_client::choose_action(RequestType request_type, std::string return action;
}
+ case REQUEST_USER_INFO:
+ {
+ std::string action = "/%s?v=info";
+ if (get_data != NULL) {
+ utils::text::replace_all(&action, "%s", *get_data);
+ }
+ return action;
+ }
+
case REQUEST_LOAD_REQUESTS:
{
return "/friends/";
|