summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
AgeCommit message (Collapse)Author
2016-05-17Facebook: Rework loading online contacts (not properly finished!); version bumpRobert Pösel
This is work in progress, which might (and will) cause wrong status reporting and maybe related problems. On the other hand this way is only "preferred" way. Previous way (using buddy_list request) isn't used anymore and might cause the captcha problems and antivirus checks from FB... git-svn-id: http://svn.miranda-ng.org/main/trunk@16843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-05-13- memory leak fixed;George Hazan
- manual memory management replaced with the automated one git-svn-id: http://svn.miranda-ng.org/main/trunk@16822 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Workaround for missing own avatar on some very rare occasionsRobert Pösel
Sometimes even Facebook doesn't show any picture at all! git-svn-id: http://svn.miranda-ng.org/main/trunk@16732 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Version bumpRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16731 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Attempt to fix receiving messages for some usersRobert Pösel
This temporary returns back processing of "deliver" event which was used before for receiving messages. Probably Facebook still uses it (instead of new "delta" event) for some people, so this should hopefully fix it for them. But it's untested and might not work correctly (I need users response on this). Also this doesn't support receiving "Message read at ..." for these users, I might add it back too, but maybe later. git-svn-id: http://svn.miranda-ng.org/main/trunk@16730 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Fix loading unread messagesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16729 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Fix loading own avatar for some rare circumstancesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16728 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-21Facebook: Trim received messages text from spaces at begin/endRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16727 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Version bumpRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16710 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Oops, don't load attachments when there are noneRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16707 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix and rework getting message's attachmentsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16706 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix showing user's name for multi chat messagesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16703 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Remove useless sender_name fieldRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16702 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Loading names of all users in multi chat from server (not only ↵Robert Pösel
existing Miranda contacts) It primary iterates over Miranda's contacts list to find existing contacts (e.g. to preserve existing custom names of these contacts). Then for missing ones it does request to server to get their names. git-svn-id: http://svn.miranda-ng.org/main/trunk@16701 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Remove option "receive messages from inbox only"Robert Pösel
It probably doesn't have any effect anymore. And if it still has any effect, plugin behaves like if it was disabled (receiving all messages). Report any issues with the new FB's feature of "approving" messages from unknown people. git-svn-id: http://svn.miranda-ng.org/main/trunk@16694 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix receiving multi chat messages, stop using old "deliver" eventRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16693 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix sending multi chat messages and codepage of their error messagesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16692 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Rework read receipts for multi chatsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16691 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17compilation fixGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@16690 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Remove unused REQUEST_MESSAGE_SEND_INBOX requestRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Implement login with two-way authorizationRobert Pösel
It shows dialog that asks for verification code. User can press button to request code via SMS. Allows 3 attempts to entering correct code, then plugin disconnects. git-svn-id: http://svn.miranda-ng.org/main/trunk@16685 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix opening resources in Visual Studio? (someone check this please)Robert Pösel
This way it is used in Steam protocol where it works, but I'm now sure if this is correct way or how does it work at all. It seems working now though. git-svn-id: http://svn.miranda-ng.org/main/trunk@16684 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-17Facebook: Fix for getting some other login errorsRobert Pösel
E.g. "You entered old password." git-svn-id: http://svn.miranda-ng.org/main/trunk@16683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-04-15contact list groups:George Hazan
- finally database is not used anymore (only as a settings' storage); - MGROUP type introduced to replace HANDLE for group ids; - MS_CLIST_GROUP* services became Clist_Group* functions; - CLIST_INTERFACE members pfnGetGroupName & pfnRenameGroup also transformed into static Clist_Group* functions git-svn-id: http://svn.miranda-ng.org/main/trunk@16659 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-27Facebook: More messaging fixesRobert Pösel
Receiving chat messages should work now. And some other fixes. But attachments/stickers still doesn't work. git-svn-id: http://svn.miranda-ng.org/main/trunk@16552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-27Facebook: Improve login procedureRobert Pösel
Tries to automatically delete DeviceID and login again once. Maybe also fixes notification that someone logged in from unknown device. git-svn-id: http://svn.miranda-ng.org/main/trunk@16551 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-27Facebook: Fix receiving sent messages from other instancesRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16550 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-25Facebook: Don't try to parse attachments when there is noneRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16545 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-25Facebook: Fix receiving messages (part II, attempt to fix attachments - but ↵Robert Pösel
doesn't work yet) git-svn-id: http://svn.miranda-ng.org/main/trunk@16541 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-25Facebook: Fix receiving messages (part I, chats and attachments doesn't work ↵Robert Pösel
yet) git-svn-id: http://svn.miranda-ng.org/main/trunk@16540 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-13Facebook: Fix missed encoding of js cookies; version bumpRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-03-13Facebook: Fix getting correct login error messageRobert Pösel
Also use special message for "Your computer needs to be cleaned" error. git-svn-id: http://svn.miranda-ng.org/main/trunk@16476 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-02-12Facebook: Improve login procedure (not finished) and fix getting login ↵Robert Pösel
errors; version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@16275 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-02-12Facebook: Revert REQUEST_NOTIFICATIONS_READ change to fix marking ↵Robert Pösel
notifications as read git-svn-id: http://svn.miranda-ng.org/main/trunk@16274 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-02-12Facebook: Some changes to contact mirver (probably doesn't work, as before)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16273 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-02-12Facebook: Update some requests format, changes for stickers and new support ↵Robert Pösel
for sending stickers (send message "[[sticker:STICKER_ID]]") git-svn-id: http://svn.miranda-ng.org/main/trunk@16272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-02-01bugfix: Facebook protocol menu gets multiplied if located in main menuGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@16203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-01-24Facebook: Fix memory corruption (thanks Wishmaster) (fixes #1164)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@16165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-01-02Copyrights update part 2Dart Raiden
git-svn-id: http://svn.miranda-ng.org/main/trunk@15985 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-01-02Facebook: Try to use "m." version if "mbasic." failsRobert Pösel
This should fix searching and loading friendship requests at login for users which internally gets "mbasic" (not "touch") version when requesting "m" version git-svn-id: http://svn.miranda-ng.org/main/trunk@15982 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2016-01-02Facebook: Fix broken login for some people (WARNING: loading frienship ↵Robert Pösel
requests at login and searching users will not work for them); version bump Some people may have not available page mbasic.facebook.com, but only m.facebook.com works for them. Problem is that "m." version shows internally either "mbasic." version OR "touch." version. In latter case source code of page looks completely different and is hard to parse. This commit uses "m." version for home (get own name, avatar and logout hash) and dtsg (get dtsg token) requests and allows parsing from both "touch." and "mbasic." versions. Problem is with loading friendship requets at login and searching users, because plugin can't parse such data for "touch." and uses only "mbasic." - so if user can't load "mbasic.", these features won't work. git-svn-id: http://svn.miranda-ng.org/main/trunk@15981 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-12-16Facebook: Fix typo in previous login fix (commit r15873), now works correctlyRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15878 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-12-16Facebook: Fix login for some other people too (parsing also differently ↵Robert Pösel
specified cookies) git-svn-id: http://svn.miranda-ng.org/main/trunk@15873 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-12-12Facebook: Fix routing of unsupported statuses to Away instead of OnlineRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15845 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-12-12Facebook: Don't set away users as idleRobert Pösel
If this will be reconsidered and enabled marking away people as idle again, then don't forget to add reseting the idle flag back to false. Because in previous commit it was set only to true and never back, even when user was online again. git-svn-id: http://svn.miranda-ng.org/main/trunk@15844 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-12-12Facebook: Visibility/away improvementsRobert Pösel
* Mark contacts last active more than 1 minute ago as away * Don't make us active for FB when we're invisible or away git-svn-id: http://svn.miranda-ng.org/main/trunk@15843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-12-12Facebook: Support for "away" status (behaves just like being idle in ↵Robert Pösel
Miranda); version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@15842 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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-11-09Facebook: Disable marking contacts "on the phone" as it is not reliable anymoreRobert Pösel
Added new hidden option "FetchMobile" (byte), which is default "0" (disabled), but you can set "1" to mark all contacts that are in json's array "mobile_friends" as "on the phone". Also you can set it to "2" to set MirVer based on some "c" field, but it is just guessed and not really correct - it was just internal test to try to distinguish between them to understand what the "c" field means. git-svn-id: http://svn.miranda-ng.org/main/trunk@15701 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c