-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Start conversations with Facebook users #60
base: master
Are you sure you want to change the base?
Conversation
…ers from within the matrix status room
Thanks! I'll see if I can badger any matrix-puppet-facebook users into testing. This is something the other matrix-puppet-bridge bridges need too, so we'll probably want to take this and abstract some stuff out into matrix-puppet-bridge for the other bridges to implement once this implementation stabilizes. Really exciting! |
I've done a bit of testing. Working things as of this change:
Not working things that should probably be fixed in this PR:
Not working things that didn't work before:
[1] For future reference, here is the code needed to do this:
|
Nice, thanks for the feedback! I'll try this out soon! |
Today I added someone as a friend, and it took about 7 hours for them to be added to the status room. I've found that I can also stop and restart the bridge to do that same thing. Is it possible to detect when I add a friend on Facebook, or could you set up polling for new friends every few minutes, so that they can be added to the status room quickly? |
Uploading an image to a puppeted room sends it to Facebook once as expected, but a few seconds later, a duplicate image appears on the Matrix end without affecting Facebook. I'm pretty sure this has only started happening since I switched to your fork. |
As it now works, it only checks your friends list at login. The reason that it took 7 hours is that the start.sh script restarts the bridge regularly. Unfortunately, getting the friends list and parsing their data is rather CPU intensive and takes a long time (this is the high CPU usage i noticed in my previous comment). We should look into that also. |
…multiple direct chats
Okay, so I added a new commit. This commit should fix the naming of rooms. Edit: Closer inspection indicates that the starting of ghost clients is the culprit, however they need to be started in order to detect invitations in direct chats. I've got about 500 contacts and this crashes after starting around 400 clients (memory errors with the heap). This causes the start.sh script to reboot and start again with starting clients, hence the continuous high CPU. If we could reduce the footprint of Edit 2: There is still an issue with aliases being set when ghost clients are invited to group chats. |
…ts are logged out on groupschats
Sorry, I only just saw the notice about this. This sounds great! I'll add testing this to my to-do list. |
As I have stopped using this bridge some time ago and have received little feedback on the PR, I have ceased to develop my code further. If someone can use this code, please go ahead. |
So this is my first version of the functionality to start conversations with facebook users (See #2).
What is works?
What doesn't work?
Although it is WIP (it is not in a merge state yet), it is a start and proofs this is possible. Right know, I need people to try and test it, and more experienced developers home in the matrix bridge matters to look at the code and how it can be improved.
@martijn:martijn.freeddns.org