Ok, I solved my problem but not how I would have liked (if there is an
answer to the original post I'd love to hear it). I set up a new controller
method that does all the fb checking code. I then broadcast a message in my
default template event-handler. The controller listener that calls my new
method picks this message up and the code gets executed. As long as all my
pages use this default template it's all good, if not, I have to remember to
get them to broadcast the 'ProcessFBRequest' message. Not too much hardship.
Liking it.
Dom
On 15/12/2007, Dominic Watson <[EMAIL PROTECTED]> wrote:
>
> Something I should add - I can not redirect at this point as facebook will
> throw a "Too many redirects" error. All redirects must be handled in a view
> state using a special FBML tag.
>
> Dominic
>
>
> On 15/12/2007, Dominic Watson <[EMAIL PROTECTED]> wrote:
> >
> > So I'm digging Model Glue and ColdSpring and have managed to get a
> > facebook starter up and running with MG, hoorah! The trouble I am having is
> > this:
> >
> > In the OnRequestStart() method in my controller, I check for certain
> > errors from the Facebook request (authenticating that it is actually a FB
> > request, etc) and I would like to be able to change the event of the request
> > when I encounter these errors.
> >
> > I have tried <cfset arguments.setResult("facebookError")> and in the MG
> > xml config I have used that result just about everywhere to no avail which
> > kind of makes sense since the onRequestEnd listener is not called from any
> > of the event-handlers.
> >
> > Any pointers? Does this make sense?
> >
> > Thanks in advance,
> >
> > Dominic
> >
> >
> > --
> > Blog it up: http://fusion.dominicwatson.co.uk
>
>
>
>
> --
> Blog it up: http://fusion.dominicwatson.co.uk
>
--
Blog it up: http://fusion.dominicwatson.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294865
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4