Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Popa  >  PHP Facebook Page Parser  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Facebook Page Parser
Get Facebook page likes, comments, other details
Author: By
Last change:
Date: 8 months ago
Size: 427 bytes
 

Contents

Class file image Download
<?php
include ("classes/facebook.class.php");

$page_id "162896513752848";

$facebook = new facebook();

$int filter_var($page_idFILTER_SANITIZE_NUMBER_INT);

$data $facebook -> parse($int);

foreach (
$data as $entry) {
    
    echo 
"<h2>{$entry->title}</h2>";
    
$published date("g:i A F j, Y"strtotime($entry -> published));
    echo 
"<small>{$published}</small>";
    echo 
"<p>{$entry->content}</p>";
    echo 
"<hr />";
}



?>