Created by Florian Degenhardt
Please give me Feedback and help me to optimized and extend the code. If you're interested to help me write me
FacebookApi is a module for Zend Framework 2. Example You can easy fill your Website Page content from you Facebook Page. Feeds, Post, Picture, Album, Events, etc
- Facebook Graph Api [COMPLETE]
- Page Service Posts (List/Details) [INCOMPLETE]
- Page Service Comments (List/Details) [INCOMPLETE]
- Page Service Likes (List/Details) [INCOMPLETE]
- Page Service Photos (List/Details) [TEST]
- Page Service Events (List/Details) [TEST]
- Page Service Albums (List/Details) [TEST]
- Page Service Milestones (List/Details) [TEST]
- Page Service Videos (List/Details) [TEST]
- Page Service Feed (List/Details) [TEST]
- Translate Route [COMPLETE]
- Widgets
- Graph [INCOMPLETE]
-
Add this project in your composer.json:
"require": { "flod1/facebook-api": "dev-master" }
-
Now tell composer to download ZfcUser by running the command:
$ php composer.phar update
-
Enabling it in your
application.config.php
file.<?php return array( 'modules' => array( // ... 'FacebookApi', ), // ... );
After installing, copy
./vendor/flod1/facebook-api/config/facebookapi.global.php.dist
to
./config/autoload/facebookapi.global.php
and change the values as desired.
- Overview Page Content
http://domain.dev/dashboard
- Widget Examples
http://domain.dev/widget
- List all Albums
http://domain.dev/albums
- List all Events
http://domain.dev/events
- List all Posts
http://domain.dev/posts
- Fetch a Facebook GraphNode ( Event, Page, Album, Post, Photo, etc)
<?php= $this->graphwidget->fetchEvent($eventid,$fields)->setTemplate("widget/default/detail.phtml");
- Fetch Facebook GraphEdge by a Node ( Events, Albums, Posts, Photos, Milestones etc)
<?php= $this->graphwidget->fetchEvents($nodeid,$fields,$limit)->setTemplate("widget/default/table.phtml");
- pagewidget - Fetch Childs from a page. e.x albums, events, posts
<?php= $this->pagewidget->fetchAlbums($fields,$limit)->setTemplate("widget/default/table.phtml");