Skip to content

flod1/FacebookApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FacebookApi

Created by Florian Degenhardt

Donate

Please give me Feedback and help me to optimized and extend the code. If you're interested to help me write me

Introduction

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

Features / Goals

  • 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]

Installation

Main Setup

With composer

  1. Add this project in your composer.json:

    "require": {
        "flod1/facebook-api": "dev-master"
    }
  2. Now tell composer to download ZfcUser by running the command:

    $ php composer.phar update

Post installation

  1. Enabling it in your application.config.phpfile.

    <?php
    return array(
        'modules' => array(
            // ...
            'FacebookApi',
        ),
        // ...
    );

Post-Install: Config

After installing, copy ./vendor/flod1/facebook-api/config/facebookapi.global.php.dist to ./config/autoload/facebookapi.global.php and change the values as desired.

Examples for a Facebookpage

Pages

  • 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

Graph Widgets

  • 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");

About

FacebookApi to use FacebookContent on your website

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published