Login   Register  
PHP Classes
elePHPant
Icontem

File: application/views/scripts/facebook/index.phtml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Craig Smith  >  Zend Framework Facebook Library  >  application/views/scripts/facebook/index.phtml  >  Download  
File: application/views/scripts/facebook/index.phtml
Role: Example script
Content type: text/plain
Description: example view file
Class: Zend Framework Facebook Library
Authenticate users with Facebook accounts and Zend
Author: By
Last change:
Date: 4 years ago
Size: 416 bytes
 

Contents

Class file image Download
<h3>Facebook Test</h3>

<?php
$facebook 
$this->facebook;
  if(
is_array($facebook->FBLogin()))
  {
      
print_r($facebook->FBLogin());
      
$logout 'http://' $_SERVER['HTTP_HOST'] . $this->baseUrl() . $this->url(array('module'=>'default','controller'=>'facebook','action'=>'logout'));
      echo 
'<a href="'.$facebook->getLogoutUrl($logout).'">Logout</a>';
  }
  else
  {
      echo 
$facebook->FBLogin();
  }