From 2944fd466a520e98b4d832d9888652d41839c242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 3 Nov 2012 20:41:37 +0000 Subject: 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 --- protocols/FacebookRM/src/process.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'protocols/FacebookRM') 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>"); - std::string post_message = utils::text::source_get_value(&post, 3, "
", "<\\/h6>"); + std::string post_header = utils::text::source_get_value(&post, 4, "
", "<\\/h5>"); + std::string post_message = utils::text::source_get_value(&post, 3, "
", "<\\/h5>"); std::string post_link = utils::text::source_get_value(&post, 3, "", "<\\/span>"); std::string post_attach = utils::text::source_get_value(&post, 4, "
", "