webOS Nation Forums >  Homebrew >  webOS Patches > Very simple Facebook Chat patch
Very simple Facebook Chat patch
  Reply
Like Tree11Likes

 
Thread Tools Display Modes
Old 03/13/2010, 09:06 PM   #1 (permalink)
Member
 
Posts: 96
Hello,

A couple of minutes ago something occurred to me, and it works:
for facebook chat you only need to change the

/etc/hosts file.

Just add the line

69.63.181.104 talk.google.com

and add a facebook account as if it where a gmail account, so <username>@chat.facebook.com

Voila!

BTW: Google Talk does not actually use "talk.google.com", so it continues to work as normal

How it works: the messaging application can use any xmpp (jabber) service. In the code, however, it is restricted to google talk. (Ref Enabling Jabber, not just Google Talk - WebOS Internals | Google Groups )

The ip address above is actually "chat.facebook.com", so we impersonate facebook as google talk.

For more info on facebook chat clients see Help Center | Facebook
robvanvliet is offline   Reply With Quote
Liked by Rnp, k4llle and Vistaus like this.
Thanked by 2sslow, a dumb cat, adambomb13, ajborley, ajm91484, alexagraceld, ananimus, antk43, antonio3, arkieboy, aughtism, ayman86, azkevman, B-model, BAbnkr, Babywayne, Bgso, bisrama, bjaardker, bjs188, bluerq, boobie11, bopodoq, Budgetmedic, byosphere, cardfan, ChemEngr, Christop406, chud311, clacombe, commonplace, Corey Gordon, cvduche, czarphanguye, damnregister, DarkTreo, dcigary, Demlor, despinova, dioscuri, djwhitey, domicius, dr fnord, drewcam888, dsei, Ehsan, ericizzy1, ericp74, evildoctor, fishtale, Fr33t4rd, FuManChuu, gapost, Goingbended, GoTitans, graffix31, Greyfox, grizzly_addams, HelmutsKohl, honda07si, Hz-R, igobytony, Igor987, jakelaw, jaykimdotnet, jbg7474, jhodnettejr, jordo487, josecaguas, JROME3SA, jusegozu, k4llle, Karou, kill_Dano, knickrox13, koolkid09, Kyusaku, leexlee, Loonytunes, luigi517, macd2002, magonzo, mamouton, Maturin, maxima2k53, mcjj11, mellisnj, Meltedwire, MerlinMM, MijoroJordan, Mike77, mikevember, mikeybob365, Misha7869, mkhiggins5, mksand28, mmm5288, ms2474, musicguy, mvpsanto, mypre2009, Myprelove, nbock01, nebj00la, netwrkr9, nimer55, NoRemorse, oly8ball, onedr0p, Orion Antares, pacha248, pattavino, pogeypre, Pokerbrothersstudio, purplecharm, Radvette, Rkguy, rlbrooks, Rnp, ryran, saketh321, Santowl, shanpalm61, SHO_ONE, situveux1, sjs2626, Spader, spudland, spy0r, suruat, Syphon, taalibeen, TheInvsbleMan, TIWizard, Tlaloc, Trident, tripsbacks, tsaunders, upperking, urabcsr, Willie923, xanthinealkaloid, xanthomondo, xome1983, xxr2hxx
Old 03/13/2010, 10:20 PM   #2 (permalink)
Member
 
ChaosMarine03's Avatar
 
Posts: 286
that's pretty cool! I might try that later
ChaosMarine03 is offline   Reply With Quote
Old 03/13/2010, 10:45 PM   #3 (permalink)
Member
 
rkguy's Avatar
 
Posts: 803
OMFG
rkguy is offline   Reply With Quote
Old 03/13/2010, 10:45 PM   #4 (permalink)
Member
 
GoTitans's Avatar
 
Posts: 391
interesting. Would love to do this but looks out of my league. Anyone want to post a more detailed step by step?
GoTitans is offline   Reply With Quote
Old 03/13/2010, 10:57 PM   #5 (permalink)
Member
 
Posts: 168
Great find!!!!!!!!! I would thank you for the rest of my life if this works but so far I did the necessary changes/additions to the hosts file, I succesfully addedthe account but now its stuck on signing in. the ev icon shows activity for the first few seconds but then stops showing activity.

NEVER MIND!!!!!!!! IT WORKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
jusegozu is offline   Reply With Quote
Old 03/13/2010, 10:58 PM   #6 (permalink)
Member
 
GoTitans's Avatar
 
Posts: 391
where do I add 69.63.181.104 talk.google.com?
GoTitans is offline   Reply With Quote
Thanked By: osmanmia
Old 03/13/2010, 11:03 PM   #7 (permalink)
Member
 
Mike77's Avatar
 
Posts: 76
Quote:
Originally Posted by GoTitans View Post
where do I add 69.63.181.104 talk.google.com?
Ya, help a couple of noobs out here
Mike77 is offline   Reply With Quote
Old 03/13/2010, 11:08 PM   #8 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,856
Here it is, in patch form

Thanks robvanvliet
Attached Files
File Type: patch facebook-chat-spoof.patch (308 Bytes, 7545 views) Email Attachment
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Liked by Rnp, crobertson, naptime and 2 others like this.
Old 03/13/2010, 11:08 PM   #9 (permalink)
Member
 
Posts: 168
well first of all you need to do whats also known as "rooting your pre" then type
mount -o remount, rw /
vi /etc/hosts.
once the file opens press i to enter insert mode and move your curson just below the last line with characters. ignore the lines with '~'. then type 69.63.181.104 talk.google.com
press esc to exit insert mode.
press x to save again you have to make sure u are not on insert mode. quit by typing :q!
mount -o remount, ro /
reboot
and then go to facebook and get your username from the account settings.
add account to messaging and bingo!

***well jason beat me to it!
+++Its nice to see how patches are created. . . good learning experience
jusegozu is offline   Reply With Quote
Thanked by czarphanguye, diosif
Old 03/13/2010, 11:12 PM   #10 (permalink)
Member
 
Posts: 168
Jason. Could you please explain me how this part of the patch works? i am very new to linux. .orig/etc/hosts+++ /etc/hosts@@ -2,1 +2,2 @@127.0.0.1 palm-webos-device+69.63.181.104talk.google.com
jusegozu is offline   Reply With Quote
Old 03/13/2010, 11:15 PM   #11 (permalink)
Member
 
sjsamphex's Avatar
 
Posts: 305
Quote:
Originally Posted by Jason Robitaille View Post
Here it is, in patch form

Thanks robvanvliet
Preware?
sjsamphex is offline   Reply With Quote
Thanked By: yayababee
Old 03/13/2010, 11:16 PM   #12 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,856
Quote:
Originally Posted by jusegozu View Post
Jason. Could you please explain me how this part of the patch works? i am very new to linux. .orig/etc/hosts+++ /etc/hosts@@ -2,1 +2,2 @@127.0.0.1 palm-webos-device+69.63.181.104talk.google.com
Well, patches are just standard unified diffs.

I created a tool for quick patching: Unified Diff Creator. So no real extra knowledge needed

And to apply them: http://forums.precentral.net/canuck-...les-wosqi.html

And to submit your own created patches to the feed: dBsooner's webOS-Patches Web Portal


Quote:
Originally Posted by sjsamphex View Post
Preware?
WebOS Quick Install http://forums.precentral.net/canuck-...les-wosqi.html
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook
Jason Robitaille is offline   Reply With Quote
Old 03/13/2010, 11:21 PM   #13 (permalink)
Member
 
Mike77's Avatar
 
Posts: 76
First of all thanks to everyone trying to help the noobs,

Jason,

I am getting the following error when i try to install this via webosQI

mount: mounting/dev/mapper/store-root-on/failed: Device or resource busy

Any ideas?


EDIT: I received the error above but it is showing in webosQI device management user installed content patches. Don't seem to be able to log in, will try a few more times.

Last edited by Mike77; 03/13/2010 at 11:30 PM.
Mike77 is offline   Reply With Quote
Old 03/13/2010, 11:22 PM   #14 (permalink)
Member
 
koolkid09's Avatar
 
Posts: 956
So I installed the patch. Now what?
koolkid09 is offline   Reply With Quote
Old 03/13/2010, 11:25 PM   #15 (permalink)
Member
 
Posts: 168
Ohh cool. . . but could you explain me a little bit as of what the Highlighted parts do.
orig/etc/hosts+++ /etc/hosts@@ -2,1 +2,2 @@127.0.0.1 palm-webos-device+69.63.181.104 talk.google.com
jusegozu is offline   Reply With Quote
Old 03/13/2010, 11:28 PM   #16 (permalink)
Member
 
Posts: 63
please get this in preware for noobs like me
pacha248 is offline   Reply With Quote
Old 03/13/2010, 11:29 PM   #17 (permalink)
Member
 
GoTitans's Avatar
 
Posts: 391
Quote:
Originally Posted by koolkid09 View Post
So I installed the patch. Now what?
Just add a new google chat account using your facebook username @chat.facebook.com.

It works! Thanks Jason and OP!
GoTitans is offline   Reply With Quote
Thanked By: rhewitt
Old 03/13/2010, 11:29 PM   #18 (permalink)
Member
 
Posts: 168
Now comes the real life test. . . lets see how much my battery suffers from this.
jusegozu is offline   Reply With Quote
Old 03/13/2010, 11:32 PM   #19 (permalink)
Legend
 
Jason Robitaille's Avatar
 
Posts: 3,856
Quote:
Originally Posted by Mike77 View Post
EDIT: I received the error above but it is showing in webosQI device management user installed content patches. Don't seem to be able to log in, will try a few more times.
Yea, that's just a random issue devices have in both wosqi/preware. Basically just reboot your pre and everything should be fine.

Quote:
Originally Posted by jusegozu View Post
Ohh cool. . . but could you explain me a little bit as of what the Highlighted parts do.
orig/etc/hosts+++ /etc/hosts@@ -2,1 +2,2 @@127.0.0.1 palm-webos-device+69.63.181.104 talk.google.com
well, I think you have line ending off. You're probably viewing the patch in something limited like Notepad. Try something more advanced like Textpad or Notepad+

Anyway, it should look like:
Code:
--- .orig/etc/hosts
+++ /etc/hosts
@@ -2,1 +2,2 @@
 127.0.0.1 palm-webos-device
+69.63.181.104 talk.google.com
--- and +++ are just filepath stuff.
- indicates the before-patch part. the first digit, 2, is the start line of this chuck, and 1 is the chunk size.
+ indicate the after-patch part. the first digit, 2, is the start line of the chunk, and 2 is the chunk size (which increases by 1 with the new line added in this chunk)
__________________
If you've liked my software, please consider to towards future development.

Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

@JayCanuck @CanuckCoding Facebook

Last edited by Jason Robitaille; 03/13/2010 at 11:38 PM.
Jason Robitaille is offline   Reply With Quote
Thanked by fishtale, Mike77, Santowl
Old 03/13/2010, 11:33 PM   #20 (permalink)
Member
 
koolkid09's Avatar
 
Posts: 956
Quote:
Originally Posted by GoTitans View Post
Just add a new google chat account using your facebook username @chat.facebook.com.

It works! Thanks Jason and OP!
I still don't understand. Where do I add the facebook username at. In the messaging app? If so I tried and it didn't work right. I need help.
koolkid09 is offline   Reply With Quote
Thanked By: chile_man
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0