Thanks for the responses. I've managed to get the facebook class to work by passing the Agavi Request Data object into the class and amending it to pull the appropriate global variables. If anyone knows of any reasons why I shouldn't do this please shout. Also, once it's completed, I can post a copy of my amended Facebook class.
Thanks Rob On 4 November 2010 11:00, <[email protected]> wrote: > Send users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.agavi.org/mailman/listinfo/users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of users digest..." > > > Today's Topics: > > 1. Re: Facebook Agavi Integration (Dheeraj Kumar) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 4 Nov 2010 06:37:03 +0000 (UTC) > From: Dheeraj Kumar <[email protected]> > Subject: Re: [Agavi-Users] Facebook Agavi Integration > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=utf-8 > > Robert Bryan <robertjbr...@...> writes: > > > > > > > Hi, > > > > I'm trying to adapt an existing Agavi application to use the Facebook PHP > SDK > (http://github.com/facebook/php-sdk/)<http://github.com/facebook/php-sdk/%29>.? > I'm having an issue with the > facebook.php class that attempts to read Facebook sessions and cookie > variables > using $_REQUEST and $_COOKIE.? Has anyone successfully integrated the > Facebook > PHP SDK into an Agavi application?? If so, how did you get around this > issue? > ThanksRob > > > > > > > > > > _______________________________________________ > > users mailing list > > us...@... > > http://lists.agavi.org/mailman/listinfo/users > > > > > I've faced this problem before. Agavi unsets all your $_ variables for > security > reasons. > > To override it, open app/config/factories.xml > > navigate to your specific <ae:configuration> tag, usually found with the > environment tag. Mine says <ae:configuration environment="development.*"> > > > add this inside the <ae:configuration> tag: > > <request class="AgaviWebRequest"> > <ae:parameter name="unset_input">false</ae:parameter> > </request> > > That should do it. You'll find that $_ variables work again :) > > > > > ------------------------------ > > _______________________________________________ > users mailing list > [email protected] > http://lists.agavi.org/mailman/listinfo/users > > > End of users Digest, Vol 47, Issue 3 > ************************************ >
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
