Facebook Connect on Coldfusion 8

I am trying to get ColdFusion 8 to work with FB Connect

I am running CF8 on IIS, Windows Server 2003.

I use this FB Connect shell for ColdFusion, written by James Constable,

http://jamesconstable.co.uk/web-development/facebook-connect-library-for-coldfusion

The library is written for the Railo server, I managed to transfer it (or, I think so) to IIS, but it gives me this error

Cycle error. Invalid collection [expires, session_key, ss, user]. There must be a valid structure or COM object.

From there, I subtract that the init method was called, but the fb parameters are blank.

Now I am trying to combine the FBML API using Gavin on RIAA with this shell. There is no success so far.

Now I panic, this is my first CF project, a little clueless :).

Some enlightenment is needed :)

Thanks in advance,

.tre.

+3
source share
1 answer

First of all, you cannot "port" the Railo application to IIS, because these are two systems for different purposes. Railo is an application server (engine) for CFML, such as Adobe ColdFusion. IIS is a web server. IIS (or Apache) is used to serve HTTP requests and send them to the CFML engine. This can be done in different ways, this is just an example of a typical one.

There are several (mostly minor) differences in the support of CFML syntax in Railo and Adobe CF, which the author mentioned in his post.

Your error should mean that you are trying to loop using something like this

<cfloop collection="#MyCollection#"></cfloop>

having MyCollection is not a data structure type.

, .

, .

, , makeRequest.

, .

UPDATE

, .

Adobe CF :

{'session_key': this.fb_params['session_key']}

{session_key = this.fb_params['session_key']}

.

, Railo . :

<cfset woo = {woo = "hoo"} />
<cfset woo = {'woo' = "hoo"} />
<cfset woo = {woo: "hoo"} />
<cfset woo = {'woo': "hoo"} />

ACF.

, Railo :)

+3

Source: https://habr.com/ru/post/1736452/


All Articles