Author Topic: Facebook protocol  (Read 516718 times)

0 Members and 5 Guests are viewing this topic.

Offline makiao

  • Newbie
  • *
  • Posts: 34
Re: Facebook protocol
« Reply #465 on: 04 11 2015, 13:38:27 »
Yes, think thats it, when i set invisible, then all "on the phone" contacts are listet as online.
 

Offline Myshor

Re: Facebook protocol
« Reply #466 on: 04 11 2015, 19:23:08 »
It is gone because it was solved correctly by using server time always. And for me it still works (at least in TabSRMM).

OK. Maybe it was my network a little bit overused. :D I've got notification on my phone, then the message was coming to Miranda with about 20s delay. I couldn't find it quick 'cause it was before my msg.
Today it looks more strange in the history:
Quote
P***** Ł*****, 03-11-2015 22:05:16:
teraz dopiero doszło twoje "Codziennie"

P***** Ł***** 22:05:16:
teraz dopiero doszło twoje "Codziennie"

P***** Ł*****, 22:05:32:
ale przez telefon czy przeglądarka na kompie?

P***** Ł*****, 22:05:32:
ale przez telefon czy przeglądarka na kompie?

K**** B**, 22:06:18:
Na kompie

K**** B**, 22:06:26:
Telefon moze czasem

It look like my messages was send double time.
Nevermind... It had to be some network problem. ;)

Fear my anger, fear my power.
I'm Dark Angel undercover.
 

Offline Robyer

Re: Facebook protocol
« Reply #467 on: 04 11 2015, 19:27:35 »
Myshor, double messages may be caused by "broken" history sync (the experimental checkbox in options). It duplicates messages when there is some unread message from that contact - it loads it twice.
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline Myshor

Re: Facebook protocol
« Reply #468 on: 04 11 2015, 19:40:55 »
AAAh... If they were presented after response it was saved like this to history, because the "older" message wasn't read already.
Still wicked behavior. Like all I find in my life. :D

Today it works fine. I hope it was just what I said - overused brandwitch. ;)

Fear my anger, fear my power.
I'm Dark Angel undercover.
 

Offline šegi

Re: Facebook protocol
« Reply #469 on: 06 11 2015, 19:21:42 »
I have still same number, only difference is that when online I see most of them as "on the phone", but in invisible are all online.

Facebook is changing things last days (like the "on the phone", which is now mostly useless and wrong), so maybe he changed also the working in invisible status. I'll see in a few days when I'll get the FB changes too for my account...

Yes I compare and many people on mobile messenger have status Web but in miranda are On phone. But now I saw that on miranda I see more people online than on messenger or on web. I thought, that FB protocol parse from web. No?
 

Offline Robyer

Re: Facebook protocol
« Reply #470 on: 09 11 2015, 09:14:48 »
šegi, yes, FB parses them from web. But there is some "mobile_friends" array with id of contacts, and I was using it for marking these contacts as "on the phone". Obviously it doesn't work correctly, so now I made commit to disable it completely. So, from now (tomorrow) you should see people only online, and it should be same as on web.

(I added hidden setting to enable the "mobile_friends" again, but it's mostly useless, see my commit message)
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline šegi

Re: Facebook protocol
« Reply #471 on: 11 11 2015, 15:27:23 »
Thanks you Robyer. I'd like look on sources of protocol. I'm interesting how it works. But I'm not programming for more years and I think that will be not so easy :D
 

Offline Robyer

Re: Facebook protocol
« Reply #472 on: 11 11 2015, 21:39:37 »
šegi, just checkout the sources and start looking :-) you'll begin understanding more and more... that's how I started anyway :)
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline Kubis

  • Newbie
  • *
  • Posts: 3
Re:Facebook protocol
« Reply #473 on: 25 11 2015, 08:07:21 »
Is it possible to disable receiving notifications about invited events? Its little bit annoying. Thnx
 

Offline Robyer

Re: Facebook protocol
« Reply #474 on: 25 11 2015, 09:27:03 »
Kubis, at the moment it's not possible to ignore any notifications in FB plugin - I show everything I've got from Facebook. Which means that you need to disable receiving such notifications (if possible) on Facebook website.

Theoretically it would be possible to implement some feature to don't show some types of notifications directly in plugin.

I won't spent my time on it anytime soon (maybe never), but I welcome any patches. So if someone implements it, I will gladly commit it. It shouldn't be that hard after all.
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline Kubis

  • Newbie
  • *
  • Posts: 3
Re: Facebook protocol
« Reply #475 on: 27 11 2015, 12:44:25 »
Ok thnx.

And how exactly stickers are working?

Instead of sticker i recieve this:
Code: [Select]
Uživatel odeslal samolepku:
https://fbcdn-dragon-a.akamaihd.net/hphotos-ak-xfa1/t39.1997-6/p50x50/851557_369239266556155_759568595_n.png
[[sticker:369239263222822]]

Checked in settings show stickers as own emoticons.
 

Offline Robyer

Re: Facebook protocol
« Reply #476 on: 27 11 2015, 19:20:52 »
Kubis, it's somehow broken. It was broken even before but now it doesn't work at all. Unfortunately.

But it was wrongly implemented in SmileyAdd in first place - it uses "custom smileys" based on contact, not on whole protocol.

Right now you can solve showing stickers only with IEView and some proper template (with JS that changes these links to images).
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline katoda_ltd

Re: Facebook protocol
« Reply #477 on: 06 12 2015, 11:57:19 »
Hi,
for a few last days I'm unable to connect to Facebook. I searched the web, checked Miranda NG forums but apparently nobody had a similar problem yet.
Here is my netlog:
Quote
12:13:46 1E04] [Facebook_1] === Beginning SetStatus process
[12:13:46 1AE0] [Facebook_1] [6.12.2015] Using Facebook Protocol RM 0.2.10.8
[12:13:46 1AE0] [Facebook_1] *** Beginning SignOn process
[12:13:46 1AE0] [Facebook_1] *** Negotiating connection with Facebook
[12:13:46 1AE0] [Facebook_1]  >> Entering login()
[12:13:46 1AE0] [Facebook_1] @@@ Sending request to 'https://mbasic.facebook.com/profile.php?v=info'
[12:13:46 1AE0] [Facebook_1] Connection request to mbasic.facebook.com:443 (Flags 11)....
[12:13:46 1AE0] [Facebook_1] (007D1098) Connecting to server mbasic.facebook.com:443....
[12:13:46 1AE0] [Facebook_1] (007D1098) Connecting to ip 31.13.64.1:443 ....
[12:13:46 1AE0] [Facebook_1] (1556) Connected to mbasic.facebook.com:443
[12:13:46 1AE0] [Facebook_1] (1556 mbasic.facebook.com) Starting SSL negotiation
[12:13:46 1AE0] [Facebook_1] (1556 mbasic.facebook.com) SSL negotiation successful
[12:13:46 1AE0] [Facebook_1] @@@ Got response with code 302
[12:13:46 1AE0] [Facebook_1] @@@ Sending request to 'https://login.facebook.com/login.php?login_attempt=1'
[12:13:46 1AE0] [Facebook_1] Connection request to login.facebook.com:443 (Flags 11)....
[12:13:46 1AE0] [Facebook_1] (007D0D98) Connecting to server login.facebook.com:443....
[12:13:46 1AE0] [Facebook_1] (007D0D98) Connecting to ip 31.13.64.1:443 ....
[12:13:46 1AE0] [Facebook_1] (1096) Connected to login.facebook.com:443
[12:13:46 1AE0] [Facebook_1] (1096 login.facebook.com) Starting SSL negotiation
[12:13:46 1AE0] [Facebook_1] (1096 login.facebook.com) SSL negotiation successful
[12:13:47 1AE0] [Facebook_1] (007D0D98:1096) Connection closed internal
[12:13:47 1AE0] [Facebook_1] (007D0D98:4294967295) Connection closed
[12:13:47 1AE0] [Facebook_1] @@@ Got response with code 200
[12:13:47 1AE0] [Facebook_1] !!! Login error: Cookies Required
[12:13:47 1AE0] [Facebook_1] !!! login(): Something with Facebook went wrong
[12:13:47 1AE0] [Facebook_1] (007D1098:1556) Connection closed internal
[12:13:47 1AE0] [Facebook_1] (007D1098:4294967295) Connection closed
[12:13:47 1AE0] [Facebook_1] *** SignOn failed

As you can see, login error is somehow related with cookies. I tried to cleand DeviceID, remove all Miranda sessions from FB, generate a separate password for Miranda - no change. Tried with development version of Miranda - still the same. There is no single sign that Facebook see Miranda connecting.
I live in Belgium, so maybe this can be an issue: http://www.bbc.com/news/technology-34987422, maybe because of that Facebook has changed login process for people trying to connect from Belgian IP addresses?
Is there any chance to fix the issue?
 

Offline Robyer

Re:Facebook protocol
« Reply #478 on: 06 12 2015, 23:17:03 »
katoda_ltd, thanks for link, interesting.

Anyway, I would need to access and analyze the data of the "belgium facebook". It would require me having some belgium proxy where I could reproduce this problem, or just your help to give me proper data I need.

Best way for that would be installing Fiddler ( http://www.telerik.com/download/fiddler ), installing it and then try to login from clean browser (e.g. private mode of some browser). And capture this data to fiddler. BUT you can try to login with invalid e-mail/password, I just need to capture the process of trying to login (I don't need/want your login/password). So, capture the whole process from opening the facebook website, to trying to login with wrong e-mail/password.

Also you can capture the same thing, but this way START by opening this page: https://login.facebook.com/login.php?login_attempt=1 instead of just https://www.facebook.com (as you did with first attempt).

Then save the logs from Fiddler into KDZ format and send it to me. (e.g. to my e-mail).
I was developing mainly Facebook, Omegle, Steam, Dummy and MobileState plugins. Now I'm retired. Goodbye, everyone. ~ You can still find me on Facebook.
 

Offline katoda_ltd

Odp: Facebook protocol
« Reply #479 on: 07 12 2015, 18:06:32 »
Hi,
thanks for the response, I'll prepare everything as requested. I'll move now to PM to not spam this thread, however I hope that it'll be possible to post a solution here soon :)