views:

1224

answers:

1

I'm developing a web app with zend framework and i'd like to discuss what is the best way to intergrate all the JS and FBML in a ZF project, anyone have some experience. For example, which may be a good solution for have the Facebook istante in every controllers, a front controller plugin?

A: 

Since JS and FBML is part of the presentation layer, these would have to go into ViewHelpers. Fetching data from FB via their APIs would go into a service, like Zend_Service_Facebook. There is a proposal for both components in Ready for Review state for some time now:

Gordon
Oh man, Zend_Service_Facebook on GoogleCode is sooo started :D (=empty repository)
Tomáš Fejfar
@tomas not my fault and also doesn't make the answer less valid in my opinion. The OP asked about architecture, not ready to use code. If you want ready to use code use http://pear.php.net/package/Services_Facebook
Gordon