diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-07-30 23:15:49 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-07-30 23:15:49 +0000 |
commit | 3e7ef2c033af2cc511f83a8f154f129394f3832b (patch) | |
tree | 35457bec566fdd699d959c66583c59b1eacdf078 /protocols/FacebookRM/src/contacts.cpp | |
parent | 6dcfe55905a55fad9169a26d434c93ca15d0717f (diff) |
Facebook: Requests constant renaming
git-svn-id: http://svn.miranda-ng.org/main/trunk@10000 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index c7604da722..0d4953494f 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -161,7 +161,7 @@ void FacebookProto::LoadContactInfo(facebook_user* fbu) // TODO: support for more friends at once std::string get_query = "&ids[0]=" + utils::url::encode(fbu->user_id); - http::response resp = facy.flap(REQUEST_LOAD_FRIEND, NULL, &get_query); + http::response resp = facy.flap(REQUEST_USER_INFO, NULL, &get_query); if (resp.code == HTTP_CODE_OK) { CODE_BLOCK_TRY @@ -422,7 +422,7 @@ void FacebookProto::AddContactToServer(void *data) query += "&__user=" + facy.self_.user_id; // Get unread inbox threads - http::response resp = facy.flap(REQUEST_REQUEST_FRIEND, &query); + http::response resp = facy.flap(REQUEST_ADD_FRIEND, &query); if (resp.data.find("\"success\":true", 0) != std::string::npos) { MCONTACT hContact = ContactIDToHContact(id); @@ -461,7 +461,7 @@ void FacebookProto::ApproveContactToServer(void *data) query += "&fb_dtsg=" + facy.dtsg_; // Ignore friendship request - http::response resp = facy.flap(REQUEST_FRIENDS_REQUEST, &query); + http::response resp = facy.flap(REQUEST_FRIENDSHIP, &query); if (resp.data.find("\"success\":true") != std::string::npos) { @@ -497,7 +497,7 @@ void FacebookProto::CancelFriendsRequest(void *data) query += "&friend=" + std::string(id); // Cancel (our) friendship request - http::response resp = facy.flap(REQUEST_CANCEL_REQUEST, &query); + http::response resp = facy.flap(REQUEST_CANCEL_FRIENDSHIP, &query); if (resp.data.find("\"payload\":null", 0) != std::string::npos) { @@ -531,7 +531,7 @@ void FacebookProto::IgnoreFriendshipRequest(void *data) query += "&fb_dtsg=" + facy.dtsg_; // Ignore friendship request - http::response resp = facy.flap(REQUEST_FRIENDS_REQUEST, &query); + http::response resp = facy.flap(REQUEST_FRIENDSHIP, &query); if (resp.data.find("\"success\":true") != std::string::npos) { |