Dan Lester, Co-founder & CTOWhat Developers can do with Facebook Fan Pages
Main Integration PointsStream on the Wall tabFBML boxesPage tabsEdit pageApp Canvas in ‘Fan Page context’API calls for Page/User info
Stream on the Wall tab
FBML boxes
Page tabs
Edit page
Edit page
App Canvas in ‘Fan Page context’http://apps.facebook.com/hedkandi/http://apps.facebook.com/hedkandi/edit/?fb_page_id=77387163http://apps.facebook.com/hedkandi/.../?fb_page_id=77387163
API calls for Page/User infopages.getInfopages.isAdminpages.isAppAddedpages.isFan
Supporting Fan Pages in an appDeveloper appAuthentication tabTick “Facebook Pages”
Page admin installs the app
Which pages have installed the app?You do not get an ‘allow’ pingCan’t query which Pages have the app installedPage tab is activated (or canvas in ‘Page context’)http://www.facebook.com/add.php? api_key=9914392752d39e99600f2be9d2d740e2&pagesFQL: select page_id, type from page_admin where uid = 534210316
FQL query on page_admin<page_admin>    <page_id> 89883054748 </page_id>    <type> LOCAL_TECHNOLOGY_TELECOMMUNICATIONS_SERVICES </type></page_admin><page_admin>    <page_id> 81932813028 </page_id>    <type> LOCAL_BUSINESS </type></page_admin><page_admin>    <page_id> 22402815405 </page_id>    <type> TELEVISION </type></page_admin><page_admin>    <page_id> 7738716301 </page_id>    <type> TECHNOLOGY </type></page_admin>Can combine with page table to get more info such as Page names, profile picture URL, all data, and fan countAlso has_added_app
Using the StreamStream.publish not for Pages yetUse feed.publishTemplatizedAction instead
FBML Boxesprofile.setFBML with page idParameters markup and profile_mainCorrespond to Boxes and Wall/Info<fb:add-section-button section="profile" />
Page TabsAdd tab name and sub-URL in developer app
Page Tabs
Page Tabs
Page TabsTab callback does not receive fb_sig_userfb_sig_page_idfb_sig_is_admin (need to check)fb_sig_is_fanfb_sig_page_added (always 1 for tab)fb_sig_type
Page TabsAJAX call can get user-specific infoRelative hyperlinks stay within tabAbsolute links back to canvasFBJS and Flash do not autoload
Page Tabs
Page Tabs
Page Tabs
Page Tabs
Canvas in Fan Page contexthttp://apps.facebook.com/hedkandi/http://apps.facebook.com/hedkandi/edit/?fb_page_id=77387163http://apps.facebook.com/hedkandi/.../?fb_page_id=77387163Might also get user info passed as POST paramsEdit pages can have <fb:page-admin-edit-header />
Dan Lesterdan@theiplatform.comhttp://theiplatform.com

Dan Lester

  • 1.
    Dan Lester, Co-founder& CTOWhat Developers can do with Facebook Fan Pages
  • 2.
    Main Integration PointsStreamon the Wall tabFBML boxesPage tabsEdit pageApp Canvas in ‘Fan Page context’API calls for Page/User info
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
    App Canvas in‘Fan Page context’http://apps.facebook.com/hedkandi/http://apps.facebook.com/hedkandi/edit/?fb_page_id=77387163http://apps.facebook.com/hedkandi/.../?fb_page_id=77387163
  • 9.
    API calls forPage/User infopages.getInfopages.isAdminpages.isAppAddedpages.isFan
  • 10.
    Supporting Fan Pagesin an appDeveloper appAuthentication tabTick “Facebook Pages”
  • 11.
  • 12.
    Which pages haveinstalled the app?You do not get an ‘allow’ pingCan’t query which Pages have the app installedPage tab is activated (or canvas in ‘Page context’)http://www.facebook.com/add.php? api_key=9914392752d39e99600f2be9d2d740e2&pagesFQL: select page_id, type from page_admin where uid = 534210316
  • 13.
    FQL query onpage_admin<page_admin> <page_id> 89883054748 </page_id> <type> LOCAL_TECHNOLOGY_TELECOMMUNICATIONS_SERVICES </type></page_admin><page_admin> <page_id> 81932813028 </page_id> <type> LOCAL_BUSINESS </type></page_admin><page_admin> <page_id> 22402815405 </page_id> <type> TELEVISION </type></page_admin><page_admin> <page_id> 7738716301 </page_id> <type> TECHNOLOGY </type></page_admin>Can combine with page table to get more info such as Page names, profile picture URL, all data, and fan countAlso has_added_app
  • 14.
    Using the StreamStream.publishnot for Pages yetUse feed.publishTemplatizedAction instead
  • 15.
    FBML Boxesprofile.setFBML withpage idParameters markup and profile_mainCorrespond to Boxes and Wall/Info<fb:add-section-button section="profile" />
  • 16.
    Page TabsAdd tabname and sub-URL in developer app
  • 17.
  • 18.
  • 19.
    Page TabsTab callbackdoes not receive fb_sig_userfb_sig_page_idfb_sig_is_admin (need to check)fb_sig_is_fanfb_sig_page_added (always 1 for tab)fb_sig_type
  • 20.
    Page TabsAJAX callcan get user-specific infoRelative hyperlinks stay within tabAbsolute links back to canvasFBJS and Flash do not autoload
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
    Canvas in FanPage contexthttp://apps.facebook.com/hedkandi/http://apps.facebook.com/hedkandi/edit/?fb_page_id=77387163http://apps.facebook.com/hedkandi/.../?fb_page_id=77387163Might also get user info passed as POST paramsEdit pages can have <fb:page-admin-edit-header />
  • 26.