summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
AgeCommit message (Collapse)Author
2015-12-11Facebook: Fix login for users from Belgium; version bumpRobert Pösel
By parsing "deferred cookies" set by JavaScript. git-svn-id: http://svn.miranda-ng.org/main/trunk@15837 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-11-25Facebook: Attempt to fix problem with login for some peopleRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15779 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-05Facebook: new MessageState api MikalaiR
git-svn-id: http://svn.miranda-ng.org/main/trunk@15251 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-01Facebook: Revise various requests, remove weird typing optimizationRobert Pösel
Revised requests: * typing notification * thread_sync * thread_info * user_info * user_info_all * buddy_list git-svn-id: http://svn.miranda-ng.org/main/trunk@15143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-01Facebook: Fix showing correct error message (e.g. when sending messages)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15140 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-01Facebook: Various fixesRobert Pösel
* Use InterlockedIncrement for msgId * Remove old phstamp parameter and use fixed ttstamp instead * Use __req parameter in requests * Use __rev parameter with static value in requests (hopefully it's better than empty) git-svn-id: http://svn.miranda-ng.org/main/trunk@15139 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-29Facebook: Fix getting friend requests at login; version bumpRobert Pösel
And some small other code changes git-svn-id: http://svn.miranda-ng.org/main/trunk@15097 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-23Facebook: Fix getting login error messageRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15021 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-17warning fixesGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14980 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-25- Set wparam and lParam to 0 as default arg in CallService and others, to ↵Tobias Weimer
simplify some code git-svn-id: http://svn.miranda-ng.org/main/trunk@14384 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-19SIZEOF replaced with more secure analog - _countofGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-09Facebook: MessageState support.MikalaiR
git-svn-id: http://svn.miranda-ng.org/main/trunk@14088 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-05Facebook: New feature to notify "On this day" posts at login; version bumpRobert Pösel
Right now it notify at every login, max. last 20 posts. In future I'll probably add more options to limit number of posts and do it only one per day, etc. git-svn-id: http://svn.miranda-ng.org/main/trunk@14006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-06-04new mir_sntprintf templates without SIZEOFGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@14004 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-31Facebook: Fix loading notifications on login again (now really) and marking ↵Robert Pösel
them as read git-svn-id: http://svn.miranda-ng.org/main/trunk@13924 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-30Facebook: Fix loading unread notifications on login (checks only last 20 items)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@13918 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-30Facebook: Remove useless parameterRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@13917 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-05-25FB json parsing rewritten for new headersGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@13832 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-04-29Facebook: Some fixes for sending messages and fix crashes introduced in ↵Robert Pösel
commit r13214; version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@13252 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-04-27Facebook: Reworked sending messages a bit; Version bumpRobert Pösel
This might fix the "computer needs cleaning" error. I removed all old send message methods and used only Mercury for everything - which is how it is used on website right now. Also parameters for send message request were updated to actual state. This might fix problem that someone has (if I remember correctly) with sending chat messages. git-svn-id: http://svn.miranda-ng.org/main/trunk@13214 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-04-27Facebook: Use msgs_recv parameter in channel requestsRobert Pösel
I'm not sure whether this fixes the "computer needs cleaning" error, but we will see git-svn-id: http://svn.miranda-ng.org/main/trunk@13213 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-04-25Facebook - common projectVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13142 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-04-18Facebook: Attempt to handle the "computer is infected" login problem; ↵Robert Pösel
version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@12925 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-04-18Facebook: Use facy.handle_ instead of global m_hNetlibUSer (it's the same ↵Robert Pösel
anyway) git-svn-id: http://svn.miranda-ng.org/main/trunk@12924 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-03-04Facebook: More unification for groupchat seen info and save groupchat ↵Robert Pösel
"readers" into database in key "MessageReaders" (Unicode); Version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@12315 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-17Facebook: Fix setting post request headersRobert Pösel
Also update some request params but that's not important or needed. git-svn-id: http://svn.miranda-ng.org/main/trunk@12173 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-17Facebook: Determine GET/POST from parameters, we don't need to use special ↵Robert Pösel
method for that git-svn-id: http://svn.miranda-ng.org/main/trunk@12166 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-17Facebook: Completely remove option to use https and always use it; version bumpRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@12165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-15Facebook: Fix for infinite channel "starting"; Version bumpRobert Pösel
This fixes it by better using of random number generator. Now we use rand_s() instead of rand() because of thread safety and also we have random "seed" per each facebook_client with much better initial random seed. Previously when user logged off and then logged in again, it used same randomgly generated clientid which resulted in confusion on Facebook server and "infinite" repeated requests for channel every second from Miranda... This bug was here probably for many months and affected all stable and development versions. git-svn-id: http://svn.miranda-ng.org/main/trunk@12119 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-15Facebook: Cleanup logging a bit, don't log that much personal info, make it ↵Robert Pösel
much smaller size Remove useless stuff (like cookies or status changes), don't log personal like message texts (there is still some personal info like user name etc.), and some other changes... git-svn-id: http://svn.miranda-ng.org/main/trunk@12118 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-14Facebook: Fix (hopefully) loading own avatar for some people with weird FB ↵Robert Pösel
"version"; version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@12104 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-14Facebook: Fix (hopefully) for not receiving messages sometimes; some tiny ↵Robert Pösel
other fixes This ancient "bug" was here since beginning of Facebook RM. But it's not a bug, it just Facebook return wrong sequence number which then causes this. git-svn-id: http://svn.miranda-ng.org/main/trunk@12103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-07Facebook: Implement and use activity_ping requestRobert Pösel
Maybe it's not needed at all, but maybe it will help something :) git-svn-id: http://svn.miranda-ng.org/main/trunk@12037 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-07Facebook: Correct implementation of idle time reporting, update channel requestRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@12036 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-02-06Facebook, Omegle, MobileState: Happy New Year 2015Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@12019 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-24Facebook: Better check for unexpected redirect at loginRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11604 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-23Facebook: Rework working with timestamps; version bumpRobert Pösel
Use time_t almost everywhere instead of DWORD and remove fix_timestamp method to replace it with to_timestamp git-svn-id: http://svn.miranda-ng.org/main/trunk@11599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-23Facebook: Remove support for "use local timestamp for messages"Robert Pösel
It's not needed anymore because we correctly set server time for sent messages, so everything will be consistent (in server time) git-svn-id: http://svn.miranda-ng.org/main/trunk@11598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-21Facebook: Use correct (= server) timestamp for sent messagesRobert Pösel
- used only when "use local time for messages" isn't enabled - also it probably doesn't work for StdMsg (SRMM) plugin git-svn-id: http://svn.miranda-ng.org/main/trunk@11555 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-14FacebookRM: changed warning lavel to w4Kirill Volinsky
git-svn-id: http://svn.miranda-ng.org/main/trunk@11420 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-01Facebook: Fix few potential crashesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11196 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-12-01Facebook: More improvements for chatroomsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11194 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-26Facebook: Various optimizations and cleanupRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@11083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-20Facebook: Refactor whole groupchat with notificationsRobert Pösel
This fix crash on right-click to notification popup and problem with not working notifications count in statusbar git-svn-id: http://svn.miranda-ng.org/main/trunk@11028 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-17Facebook: Experimental messages sync at login (for last 24-hours only) ↵Robert Pösel
(patch by Vojtěch Kinkor, thanks) git-svn-id: http://svn.miranda-ng.org/main/trunk@11006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-17Facebook: Use correct phstamp and ttstamp values in POST data (Facebook ↵Robert Pösel
doesn't give a .... anyway) git-svn-id: http://svn.miranda-ng.org/main/trunk@11005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-11-09Facebook: Fix disconnection few seconds after login for some peopleRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10941 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-09-19Facebook: Fix for Facebook's image captcha; version bumpRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10524 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-09-12Facebook: Another attempt to get own name for some special fb versionRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2014-09-07Facebook: Fixed using hidden "Locale" option, now it is used in all requestsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@10394 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c