diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-11-03 19:22:54 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-11-03 19:22:54 +0000 |
commit | e3cea4cc5c8f844fedbccd76077a4b15897f9b34 (patch) | |
tree | 0c0939380caea5a5900328b19fdd3cc80c8ec6b3 /protocols/FacebookRM/src/contacts.cpp | |
parent | f1c8069fba15a042ba2824ee6dc48a891f8ccd2d (diff) |
Facebook: No more post_form_id. Elliot! No more!
git-svn-id: http://svn.miranda-ng.org/main/trunk@2169 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index 9e6c6abfa0..5337ce6dbe 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -167,14 +167,10 @@ void FacebookProto::DeleteContactFromServer(void *data) std::string id = (*(std::string*)data);
delete data;
- std::string query = "norefresh=false&post_form_id_source=AsyncRequest&lsd=&fb_dtsg=";
- query += facy.dtsg_;
- query += "&post_form_id=";
- query += facy.post_form_id_;
- query += "&uid=";
- query += id;
- query += "&__user=";
- query += facy.self_.user_id;
+ std::string query = "norefresh=false&lsd=";
+ query += "&fb_dtsg=" + facy.dtsg_;
+ query += "&uid=" + id;
+ query += "&__user=" + facy.self_.user_id;
// Get unread inbox threads
http::response resp = facy.flap( FACEBOOK_REQUEST_DELETE_FRIEND, &query );
@@ -217,14 +213,10 @@ void FacebookProto::AddContactToServer(void *data) std::string id = (*(std::string*)data);
delete data;
- std::string query = "action=add_friend&how_found=profile_button&ref_param=ts&outgoing_id=&unwanted=&logging_location=&no_flyout_on_click=false&ego_log_data=&post_form_id_source=AsyncRequest&lsd=&fb_dtsg=";
- query += facy.dtsg_;
- query += "&post_form_id=";
- query += facy.post_form_id_;
- query += "&to_friend=";
- query += id;
- query += "&__user=";
- query += facy.self_.user_id;
+ std::string query = "action=add_friend&how_found=profile_button&ref_param=ts&outgoing_id=&unwanted=&logging_location=&no_flyout_on_click=false&ego_log_data=&lsd=";
+ query += "&fb_dtsg=" + facy.dtsg_;
+ query += "&to_friend=" + id;
+ query += "&__user=" + facy.self_.user_id;
// Get unread inbox threads
http::response resp = facy.flap( FACEBOOK_REQUEST_REQUEST_FRIEND, &query );
|