Shoutbox

Request Script: Facebook Chat Plugin - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Request Script: Facebook Chat Plugin (/showthread.php?tid=91700)

Request Script: Facebook Chat Plugin by keithfulcher on 07-30-2009 at 02:22 PM

I have been using pidgin.im for the last few years and I have recently started to "try" to move back to MSN.

One of the biggest features that I miss is the ability to connect and Chat with people on Facebook. So... is it possible to create a script/plug in that would add the ability to see and chat with people that are logged on to facebook.

Thanks in Advance,

Keith


RE: Request Script: Facebook Chat Plugin by Spunky on 07-30-2009 at 03:07 PM

It may be, albeit rather difficult. I think they use AJAX to send/receive and view (display) the messages. The hard part would be navigating through Facebook's code to try and determine how, unless it's exposed as a feature to the API. It may actually require an external DLL if it gets too complicated for Plus! alone


RE: Request Script: Facebook Chat Plugin by mathieumg on 07-31-2009 at 03:52 AM

I'm pretty sure it can be done, using this.


RE: Request Script: Facebook Chat Plugin by Dempsey on 07-31-2009 at 07:32 AM

quote:
Originally posted by mathieumg
I'm pretty sure it can be done, using this.
That's just for Apps I think
RE: Request Script: Facebook Chat Plugin by ShawnZ on 07-31-2009 at 07:35 AM

quote:
Originally posted by Spunky
It may actually require an external DLL if it gets too complicated for Plus! alone

well er... if facebook itself can do it completely in javascript, then... :p
RE: Request Script: Facebook Chat Plugin by Spunky on 07-31-2009 at 07:53 AM

quote:
Originally posted by ShawnZ
quote:
Originally posted by Spunky
It may actually require an external DLL if it gets too complicated for Plus! alone

well er... if facebook itself can do it completely in javascript, then... :p

But they may have support for all types of things on the server that we just can't access...
RE: RE: Request Script: Facebook Chat Plugin by mathieumg on 07-31-2009 at 08:01 AM

quote:
Originally posted by Dempsey
quote:
Originally posted by mathieumg
I'm pretty sure it can be done, using this.
That's just for Apps I think

Nah, read the first line :D

quote:
The Facebook JavaScript client library allows you to access various features of Facebook Platform through JavaScript. You can make Facebook API calls through JavaScript from any website and easily create AJAX Facebook applications. Since the library does not require any server side code, you can now create a Facebook application that can be hosted on any website.


I don't see why it couldn't be done from a Plus! script. There are libraries/APIs for many other languages as well, some official others unofficial. They're listed here.

FB Apps developement is something else.
RE: Request Script: Facebook Chat Plugin by Matti on 07-31-2009 at 08:29 AM

The problem with that library is that the library needs to be ran in a browser where the "window" and "document" objects are available, which is not the case in a Plus! Live script.

If you look through the code, you'll see that the script manipulates the HTML DOM in order to load the other necessary scripts. This is done by creating a new <script> tag in the page's <head> section. The reason why this won't work in a Plus! script is that JScript runs completely on its own (it is only extended by Plus! with objects such as MsgPlus and Messenger) whereas JavaScript runs in a browser (it comes with the capability to manipulate the loaded web page). A very simple example: in order for the user to log onto Facebook, a pop-up window has to be opened with window.open() and this functionality does not exist natively in the Plus! scripting environment.


RE: Request Script: Facebook Chat Plugin by mathieumg on 07-31-2009 at 08:31 AM

So I guess one would have to tinker with the protocol then... or worst case scenario use a browser control :p


RE: Request Script: Facebook Chat Plugin by Spunky on 07-31-2009 at 12:00 PM

I'll tinker a bit... If it can't be done as a plus script, it might still be possible as a chrome extensions as chrome has access to document and window objects (Y)


RE: Request Script: Facebook Chat Plugin by Yousef on 07-31-2009 at 07:51 PM

Working on it :)


RE: Request Script: Facebook Chat Plugin by snAke_LeAder on 03-03-2010 at 01:38 PM

MessengerDiscovery can do this


RE: Request Script: Facebook Chat Plugin by Menthix on 03-03-2010 at 02:34 PM

Windows Live Messenger 2010, from looking at the leaked screenshots looks like it may do it natively.