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/).  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

Reply via email to