diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-01-02 06:40:30 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-01-02 06:40:30 +0000 |
commit | bc23edb7878995498fa89e37438cdbc77e2b93bf (patch) | |
tree | 433ce5e39febead4d4114e77402f7e5d7eefdd52 /protocols/FacebookRM/src/constants.h | |
parent | 961bf5e6b1ba406951a7624962973bacfe140cd5 (diff) |
Facebook: Fix broken login for some people (WARNING: loading frienship 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
Diffstat (limited to 'protocols/FacebookRM/src/constants.h')
-rw-r--r-- | protocols/FacebookRM/src/constants.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/constants.h b/protocols/FacebookRM/src/constants.h index 8e5fd73fbf..041b47d570 100644 --- a/protocols/FacebookRM/src/constants.h +++ b/protocols/FacebookRM/src/constants.h @@ -36,7 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. // Connection
#define FACEBOOK_SERVER_REGULAR "www.facebook.com"
-#define FACEBOOK_SERVER_MOBILE "mbasic.facebook.com"
+#define FACEBOOK_SERVER_MBASIC "mbasic.facebook.com"
+#define FACEBOOK_SERVER_MOBILE "m.facebook.com"
#define FACEBOOK_SERVER_CHAT "%s-%s.facebook.com"
#define FACEBOOK_SERVER_LOGIN "www.facebook.com"
#define FACEBOOK_SERVER_APPS "apps.facebook.com"
|