API > eden > facebook.php
View Source

class Eden_Facebook

Facebook API factory. This is a factory class with methods that will load up different Facebook classes. Facebook classes are organized as described on their developer site: auth, graph, FQL. We also added a post class for more advanced options when posting to Facebook.

Constants

  • RSS: https://www.facebook.com/feeds/page.php?id
  • RSS_AGENT: Mozilla/5.0 (X11 U Linux x86_64 en-US rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

Public Methods

public function auth($key, $secret, $redirect)

Returns Facebook Auth

Arguments

  1. string
  2. string
  3. string

Returns Eden_Facebook_Auth

public function event($token, $name, $start, $end)

Add an event

Arguments

  1. string
  2. string
  3. string|int
  4. string|int

Returns Eden_Facebook_Event

public function fql($token)

Returns Facebook FQL

Arguments

  1. string

Returns Eden_Facebook_Fql

public function graph($token)

Returns Facebook Graph

Arguments

  1. string

Returns Eden_Facebook_Graph

public function link($token, $url)

Add a link

Arguments

  1. string
  2. string

Returns Eden_Facebook_Post

public function post($token, $message)

Returns Facebook Post

Arguments

  1. string
  2. string

Returns Eden_Facebook_Post

public function rss($id)

Returns an RSS feed to a public id

Arguments

  1. int

Returns SimpleXml

public function subscribe($clientId, $secret)

Returns Facebook subscribe

Arguments

  1. string
  2. string

Returns Eden_Facebook_Subscribe


© 2012 Openovate Labs. All rights reserved.