FB_Helper

Methods

meta

meta()

Returns a facebook open graph meta tag

Parameters:
  • string – property of tag
  • string – content of tag
Return type:

string

picture_url

picture_url()

Returns the Facebook picture url

Parameters:
  • int
  • string – square (50x50), small (50x?), normal (100x?) or large (200x?)
Return type:

string

profile_url

profile_url()

Returns the Facebook profile url

Parameters:int
Return type:string

fan_page_url

fan_page_url()

Returns the Facebook fan page url

Parameters:int
Return type:string

page_tab_url

page_tab_url()

Returns the Facebook fan page tab url

Parameters:
  • int – (eg - pages/X-Studios/262672746449)
  • int
Return type:

string

add_page_tab_url

add_page_tab_url()

Returns the url needed to add the app as a page tab

Parameters:
  • int
  • string
Return type:

string

graph_request

graph_request()

Returns public info from the Facebook graph api Most of the time Facebook will respond with JSON data, but there are special cases where it will not

Parameters:
  • int – id of the object we want public info for
  • bool – decode json response
Return type:

mixed

Project Versions

Table Of Contents

Previous topic

Class

This Page