Dan Lester

939 views
885 views

Published on

Published in: Entertainment & Humor, Sports
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
939
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Dan Lester

  1. 1. Dan Lester, Co-founder & CTOWhat Developers can do with Facebook Fan Pages<br />
  2. 2. Main Integration Points<br />Stream on the Wall tab<br />FBML boxes<br />Page tabs<br />Edit page<br />App Canvas in ‘Fan Page context’<br />API calls for Page/User info<br />
  3. 3. Stream on the Wall tab<br />
  4. 4. FBML boxes<br />
  5. 5. Page tabs<br />
  6. 6. Edit page<br />
  7. 7. Edit page<br />
  8. 8. App Canvas in ‘Fan Page context’<br />http://apps.facebook.com/hedkandi/<br />http://apps.facebook.com/hedkandi/edit/?fb_page_id=77387163<br />http://apps.facebook.com/hedkandi/.../?fb_page_id=77387163<br />
  9. 9. API calls for Page/User info<br />pages.getInfo<br />pages.isAdmin<br />pages.isAppAdded<br />pages.isFan<br />
  10. 10. Supporting Fan Pages in an app<br />Developer app<br />Authentication tab<br />Tick “Facebook Pages”<br />
  11. 11. Page admin installs the app<br />
  12. 12. Which pages have installed the app?<br />You do not get an ‘allow’ ping<br />Can’t query which Pages have the app installed<br />Page tab is activated (or canvas in ‘Page context’)<br />http://www.facebook.com/add.php? api_key=9914392752d39e99600f2be9d2d740e2&pages<br />FQL: select page_id, type from page_admin where uid = 534210316<br />
  13. 13. FQL query on page_admin<br />&lt;page_admin&gt;<br /> &lt;page_id&gt; 89883054748 &lt;/page_id&gt;<br /> &lt;type&gt; LOCAL_TECHNOLOGY_TELECOMMUNICATIONS_SERVICES &lt;/type&gt;<br />&lt;/page_admin&gt;<br />&lt;page_admin&gt;<br /> &lt;page_id&gt; 81932813028 &lt;/page_id&gt;<br /> &lt;type&gt; LOCAL_BUSINESS &lt;/type&gt;<br />&lt;/page_admin&gt;<br />&lt;page_admin&gt;<br /> &lt;page_id&gt; 22402815405 &lt;/page_id&gt;<br /> &lt;type&gt; TELEVISION &lt;/type&gt;<br />&lt;/page_admin&gt;<br />&lt;page_admin&gt;<br /> &lt;page_id&gt; 7738716301 &lt;/page_id&gt;<br /> &lt;type&gt; TECHNOLOGY &lt;/type&gt;<br />&lt;/page_admin&gt;<br />Can combine with page table to get more info such as Page names, profile picture URL, all data, and fan count<br />Also has_added_app<br />
  14. 14. Using the Stream<br />Stream.publish not for Pages yet<br />Use feed.publishTemplatizedAction instead<br />
  15. 15. FBML Boxes<br />profile.setFBML with page id<br />Parameters markup and profile_main<br />Correspond to Boxes and Wall/Info<br />&lt;fb:add-section-button section=&quot;profile&quot; /&gt; <br />
  16. 16. Page Tabs<br />Add tab name and sub-URL in developer app<br />
  17. 17. Page Tabs<br />
  18. 18. Page Tabs<br />
  19. 19. Page Tabs<br />Tab callback does not receive fb_sig_user<br />fb_sig_page_id<br />fb_sig_is_admin (need to check)<br />fb_sig_is_fan<br />fb_sig_page_added (always 1 for tab)<br />fb_sig_type<br />
  20. 20. Page Tabs<br />AJAX call can get user-specific info<br />Relative hyperlinks stay within tab<br />Absolute links back to canvas<br />FBJS and Flash do not autoload<br />
  21. 21. Page Tabs<br />
  22. 22. Page Tabs<br />
  23. 23. Page Tabs<br />
  24. 24. Page Tabs<br />
  25. 25. Canvas in Fan Page context<br />http://apps.facebook.com/hedkandi/<br />http://apps.facebook.com/hedkandi/edit/?fb_page_id=77387163<br />http://apps.facebook.com/hedkandi/.../?fb_page_id=77387163<br />Might also get user info passed as POST params<br />Edit pages can have &lt;fb:page-admin-edit-header /&gt;<br />
  26. 26. Dan Lesterdan@theiplatform.comhttp://theiplatform.com<br />

×