Zend Framework: Zend_Service_Facebook Component Proposal
| Proposed Component Name | Zend_Service_Facebook |
|---|---|
| Developer Notes | http://framework.zend.com/wiki/display/ZFDEV/Zend_Service_Facebook |
| Proposers | Ian Warner |
| Zend Liaison | TBD |
| Revision | 1.0 - 17th November 2008: Initial Draft. (wiki revision: 13) |
Table of Contents
1. Overview
Zend_Service_Facebook will be a set of Helper Classes to OOP the Facebook FBML Components. These consist of elements such as
FB:Dialog
FB:TypeAhead
One thing Facebook does require also is JS to be written in its own proprietary FBJS and these helpers would also create FBJS components also to handle tasks such as AJAX
Something to take note of though is that Bebo also use the Facebook Platform and Helpers good for Facebook will be good for Bebo in most parts, Bebo is several generations behind. So the naming of this component may need to reflect that is can be cross site, but will utilise the Facebook Open Platform
2. References
3. Component Requirements, Constraints, and Acceptance Criteria
- This component will create Helper Classes for all Facebook FBML elements.
- This component will strive to provide Helpers for common FBJS tasks.
4. Dependencies on Other Framework Components
- Zend_Exception
5. Theory of Operation
Helpers classes are simply called from the View, replacing the usualwith a nice OOP way of doing things $this->facebookDialog();
This will allow the application developer to concentrate on the application and not worry about Facebook changing there platform on a far too regular cycle.
6. Milestones / Tasks
- Milestone 1: Community Feedback on already coded Helpers required to progress
- Milestone 2: Based on the above create the required Unit Tests for all the Helpers
- Milestone 3: Add any missing Helpers
- Milestone 4: Document all Helpers and best practice use
- Milestone 5: Working prototype checked into the incubator when requirements are met.
- Milestone 6: Finalise Documentation and Testing and deploy.
7. Class Index
- Zend_View_Helper_Facebook_Dialog
- Zend_View_Helper_Facebook_Board
- Zend_View_Helper_Facebook_Comments
etc
8. Use Cases
This demonstrates the Facebook Comments UI Component Use Case:
9. Class Skeletons
This demonstrates the actual Helper I use now for the Facebook comments component other Helpers are written in a similar way.
ZF Home Page
Code Browser
Wiki Dashboard