summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
AgeCommit message (Collapse)Author
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
2015-11-01Facebook: Fix setting contacts' status "on the phone" with new version of ↵Robert Pösel
Facebook In new version Facebook stopped sending "p" json element with info about client user is connected with. Without that info, we won't have correct MirVer anymore (now setting website by default). But there is still element which say what contacts are "on mobile" so now we use that correctly. git-svn-id: http://svn.miranda-ng.org/main/trunk@15665 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-10-27private messages in Facebook aren't marked as read if a contact is a sub in ↵George Hazan
metacontact git-svn-id: http://svn.miranda-ng.org/main/trunk@15625 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-10-20Facebook: Adapt to use std_string_utilsRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15576 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-05Facebook: Fix creating wrongly identified group chats as dummy contacts ↵Robert Pösel
during history sync at login Problem was caused by expectation that thread_fbid has only classic contacts, but in fact even group chats can have it. Solution is to use other_user_fbid which is null for group chat contacts. git-svn-id: http://svn.miranda-ng.org/main/trunk@15246 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-04compilation fixVadim Dashevskiy
git-svn-id: http://svn.miranda-ng.org/main/trunk@15245 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-04Facebook: menu uidAlexander Lantsev
git-svn-id: http://svn.miranda-ng.org/main/trunk@15187 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: Add new option "Prefer real names instead of nicknames"Robert Pösel
By disabling it you will see nicknames (if available) instead of real name of contacts. git-svn-id: http://svn.miranda-ng.org/main/trunk@15142 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-09-01Facebook: Lower number of send message tries to 1 and provide hidden option ↵Robert Pösel
for it Key "SendMessageTries" (byte), default=1, min=1, max=5 git-svn-id: http://svn.miranda-ng.org/main/trunk@15141 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-29Facebook: Fix receiving messages on login / opening windowRobert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15096 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-29Facebook: Fix receiving messages (broken in r15046)Robert Pösel
git-svn-id: http://svn.miranda-ng.org/main/trunk@15082 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-28mir_sntprintf / mir_snprintf: obsoleted second parameter removed wherever ↵George Hazan
possible git-svn-id: http://svn.miranda-ng.org/main/trunk@15064 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
2015-08-27name conflictsGeorge Hazan
git-svn-id: http://svn.miranda-ng.org/main/trunk@15046 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c