Request Script: Facebook Chat Plugin |
Author: |
Message: |
keithfulcher
New Member
Posts: 1
Joined: Jul 2009
|
O.P. Request Script: Facebook Chat Plugin
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
|
|
07-30-2009 02:22 PM |
|
|
Spunky
Former Super Mod
Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
|
RE: Request Script: Facebook Chat Plugin
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
<Eljay> "Problems encountered: shit blew up"
|
|
07-30-2009 03:07 PM |
|
|
mathieumg
Full Member
Posts: 181 Reputation: 2
35 / /
Joined: May 2004
|
RE: Request Script: Facebook Chat Plugin
I'm pretty sure it can be done, using this.
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator
|
|
07-31-2009 03:52 AM |
|
|
Dempsey
Scripting Contest Winner
http://AdamDempsey.net
Posts: 2395 Reputation: 53
38 / /
Joined: Jul 2003
|
RE: Request Script: Facebook Chat Plugin
quote: Originally posted by mathieumg
I'm pretty sure it can be done, using this.
That's just for Apps I think
|
|
07-31-2009 07:32 AM |
|
|
ShawnZ
Veteran Member
Posts: 3146 Reputation: 43
32 / /
Joined: Jan 2003
|
RE: Request Script: Facebook Chat Plugin
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...
Spoiler: the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
|
|
07-31-2009 07:35 AM |
|
|
Spunky
Former Super Mod
Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
|
RE: Request Script: Facebook Chat Plugin
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...
But they may have support for all types of things on the server that we just can't access...
<Eljay> "Problems encountered: shit blew up"
|
|
07-31-2009 07:53 AM |
|
|
mathieumg
Full Member
Posts: 181 Reputation: 2
35 / /
Joined: May 2004
|
RE: RE: Request Script: Facebook Chat Plugin
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
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.
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator
|
|
07-31-2009 08:01 AM |
|
|
Matti
Elite Member
Script Developer and Helper
Posts: 1646 Reputation: 39
32 / /
Joined: Apr 2004
|
RE: Request Script: Facebook Chat Plugin
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.
|
|
07-31-2009 08:29 AM |
|
|
mathieumg
Full Member
Posts: 181 Reputation: 2
35 / /
Joined: May 2004
|
RE: Request Script: Facebook Chat Plugin
So I guess one would have to tinker with the protocol then... or worst case scenario use a browser control
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator
|
|
07-31-2009 08:31 AM |
|
|
Spunky
Former Super Mod
Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
|
RE: Request Script: Facebook Chat Plugin
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
<Eljay> "Problems encountered: shit blew up"
|
|
07-31-2009 12:00 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|