What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Request Script: Facebook Chat Plugin

Pages: (2): « First [ 1 ] 2 » Last »
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
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
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" :zippy:
07-30-2009 03:07 PM
Profile PM Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
35 / Male / Flag
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
Profile E-Mail PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
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
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
07-31-2009 07:32 AM
Profile E-Mail PM Web Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
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... :p
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
Profile PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
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... :p

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" :zippy:
07-31-2009 07:53 AM
Profile PM Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
35 / Male / Flag
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 :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.
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
07-31-2009 08:01 AM
Profile E-Mail PM Web Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
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.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
07-31-2009 08:29 AM
Profile E-Mail PM Web Find Quote Report
mathieumg
Full Member
***


Posts: 181
Reputation: 2
35 / Male / Flag
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 :p
Official MessengerPlus! Live French Translator
Official StuffPlug 3 French Translator

:)
07-31-2009 08:31 AM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
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 (Y)
<Eljay> "Problems encountered: shit blew up" :zippy:
07-31-2009 12:00 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On