diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-11-03 20:41:37 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-11-03 20:41:37 +0000 |
commit | 2944fd466a520e98b4d832d9888652d41839c242 (patch) | |
tree | fcf3d394e34351bdcea4cae238deb95feb541287 /protocols/FacebookRM | |
parent | f12d8b56f2894e94491bd7424d69f595d285f01f (diff) |
Facebook: Elliott! I said no more! Last post_form_id fix...
- Fix for getting newsfeeds (should be improved more)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 2790b0f778..21fc491f99 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -252,13 +252,9 @@ void FacebookProto::ProcessUnreadMessages( void* ) std::string get_data = "sk=inbox&query=is%3Aunread";
- std::string data = "post_form_id=";
- data += ( facy.post_form_id_.length( )) ? facy.post_form_id_ : "0";
- data += "&fb_dtsg=" + facy.dtsg_;
- data += "&post_form_id_source=AsyncRequest&lsd=&phstamp=";
- data += utils::time::mili_timestamp();
- data += "&__user=";
- data += facy.self_.user_id;
+ std::string data = "&fb_dtsg=" + facy.dtsg_;
+ data += "&lsd=&phstamp=" + utils::time::mili_timestamp();
+ data += "&__user=" + facy.self_.user_id;
// Get unread inbox threads
http::response resp = facy.flap( FACEBOOK_REQUEST_ASYNC, &data, &get_data );
@@ -654,8 +650,8 @@ void FacebookProto::ProcessFeeds( void* data ) std::string post = resp->substr( pos, pos2 - pos );
pos += 5;
- std::string post_header = utils::text::source_get_value(&post, 4, "<h6 class=", "uiStreamHeadline", ">", "<\\/h6>");
- std::string post_message = utils::text::source_get_value(&post, 3, "<h6 class=\\\"uiStreamMessage\\\"", ">", "<\\/h6>");
+ std::string post_header = utils::text::source_get_value(&post, 4, "<h5 class=", "uiStreamHeadline", ">", "<\\/h5>");
+ std::string post_message = utils::text::source_get_value(&post, 3, "<h5 class=\"uiStreamMessage userContentWrapper", ">", "<\\/h5>");
std::string post_link = utils::text::source_get_value(&post, 3, "<span class=\\\"uiStreamSource\\\"", ">", "<\\/span>");
std::string post_attach = utils::text::source_get_value(&post, 4, "<div class=", "uiStreamAttachments", ">", "<form");
|