Countdown to Facebook D-Day

Countdown to Facebook D-Day

Lightning talk delivered on October 23, 2014 @ Nomad PHP: https://joind.in/12314

On April 30, 2015 Facebook is going to break their API. Are you prepared?
Facebook recently announced some big changes to their development platform which introduces a number of new features, limitations and breaking changes. The changes include a new version & versioning system of the Graph API, a brand new Facebook login & permission system, a brand new PHP SDK, and a brand new JavaScript SDK.

And here's the kicker: all Facebook apps will be automatically forced upgraded to Graph v2.0 on April 30, 2015.

If you have ever tied your website into Facebook login, used the Graph API or the PHP or Javascript SDK's, you cannot miss this talk. I will outline what Facebook is changing and explain the new Graph versioning timeline and process. I'll also give tips for upgrading your app to the latest version of Graph and how to stay on top of the Facebook platform changes going forward.

8c090cc1ccd623a146ddd9159b1bf7e2?s=128

Sammy Kaye Powers

October 23, 2014
Tweet

Transcript

  1. Countdown to FACEBOOK D-DAY Photo: @darthmauldds on Flickr APRIL 30

    2015 By @SammyK For @nomadphp On October 23rd, 2014
  2. Facebook development CRASH COURSE Photo: Skinnyde on Flickr

  3. FACEBOOK APP? What is a

  4. None
  5. X

  6. DATA into Facebook’s PORTAL Photo: Mike Kniec on Flickr

  7. MANY FORMS A Facebook app takes

  8. Website

  9. Website

  10. Canvas

  11. Page Tab

  12. SOURCE CODE The canvas app

  13. <iframe! src=“you.com”>! </iframe>

  14. <iframe! src=“you.com”>! </iframe>

  15. <iframe! src=“you.com”>! </iframe>

  16. THAT’S IT! :)

  17. <iframe! src=“you.com”>! </iframe>

  18. OTHER FORMS A few other

  19. Mobile Photo: Mike Mozart on Flickr

  20. Consoles

  21. STORY TIME

  22. Meet Bob. hi im bob.

  23. Bob is a builder.

  24. One day…

  25. None
  26. None
  27. I shall build!

  28. None
  29. None
  30. And it was good

  31. …but then without warning

  32. None
  33. None
  34. That’s old

  35. That too

  36. None
  37. None
  38. but whyyy?!

  39. Bob is totes mad

  40. None
  41. None
  42. THE END

  43. QUIZ TIME! (3 questions)

  44. = ?

  45. = PHP NERD

  46. = ?

  47. = FACEBOOK DEVELOPMENT PLATFORM

  48. THE BAD GUY? Who is

  49. ?

  50. X

  51. ?

  52. X

  53. ???

  54. v EXPECTATION

  55. v EXPECTATION THE BAD GUY!

  56. Facebook platform CHANGES TIME Photo: Gerrit (Gert) Beukema on Flickr

    ALL THE
  57. <?php namespace Facebook;! ! define(‘CONSTANT’,! ‘???’);

  58. <?php namespace Facebook;! ! define(‘CONSTANT’,! ‘change’);

  59. What's DEPRECIATED Photo: Brent Danley on Flickr

  60. LIKE GATES? Remember Like our PAGE!

  61. Photo: http://www.picturemarketing.com/products/social/like-gate

  62. DEAD Like our PAGE! Like Gates Nov 5, 2014

  63. You must not incentivize people to use social plugins or

    to like a Page. “
  64. This includes offering rewards, or gating apps or app content

    based on whether or not a person has liked a Page. - Facebook Platform Policy “
  65. This includes offering rewards, or app content based on whether

    or not a person has liked a Page. - Facebook Platform Policy “ Bob is totes mad
  66. FEED DIALOG? Remember Share this!

  67. Photo: https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.1

  68. DEAD Feed Dialog April 30, 2015 Share this!

  69. SHARE DIALOG Share this! The new hotness

  70. Photo: https://developers.facebook.com/docs/sharing/reference/share-dialog

  71. Photo: https://developers.facebook.com/docs/sharing/reference/feed-dialog/v2.1

  72. FB.ui({! method: ‘feed',! name: ‘My title’,! caption: 'My caption’,! description:!

    ‘My description’,! picture:! ‘you.com/pic.jpg’,! link: ‘you.com’! }, function(response){});
  73. FB.ui({! method: ‘feed',! name: ‘My title’,! caption: 'My caption’,! description:!

    ‘My description’,! picture:! ‘you.com/pic.jpg’,! link: ‘you.com’! }, function(response){});
  74. FB.ui({! method: ‘feed',! name: ‘My title’,! caption: 'My caption’,! description:!

    ‘My description’,! picture:! ‘you.com/pic.jpg’,! link: ‘you.com’! }, function(response){});
  75. FB.ui({! method: ‘feed',! name: ‘My title’,! caption: 'My caption’,! description:!

    ‘My description’,! picture:! ‘you.com/pic.jpg’,! link: ‘you.com’! }, function(response){});
  76. FB.ui({! method: ‘feed',! name: ‘My title’,! caption: 'My caption’,! description:!

    ‘My description’,! picture:! ‘you.com/pic.jpg’,! link: ‘you.com’! }, function(response){});
  77. Photo: https://developers.facebook.com/docs/sharing/reference/share-dialog

  78. FB.ui({! method: 'share',! href: ‘you.com',! }, function(response){});

  79. Photo: https://developers.facebook.com/docs/sharing/reference/share-dialog CUSTOMIZE? How to

  80. <meta property=“og:title” />! <meta property=“og:image” />! <meta property=“og:description” /> OPEN

    GRAPH TAGS
  81. <meta property=“ <meta property=“ <meta property=“ OPEN GRAPH TAGS ANOTHER

    TALK That’s
  82. <meta property=“ <meta property=“ <meta property=“ OPEN GRAPH TAGS Bob

    is totes mad
  83. FQL? Remember SELECT * FRoM me (Facebook Query Language)

  84. SELECT uid, name, pic_square FROM user WHERE uid = me()!

    OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
  85. DEAD FQL August 7, 2016 SELECT * FRoM me

  86. COMPLEX QUERIES? How to make SELECT uid, name, pic_square FROM

    user WHERE uid = me()! OR uid IN (SELECT uid2 FROM friend WHERE uid1 = me())
  87. 1) nested requests 2) multiple ID read requests 3) batch

    requests
  88. 1) nested requests 2) multiple ID read request 3) Bob

    is totes mad
  89. www.SammyK.me

  90. FACEBOOK CHANGES TIME Photo: allison on Flickr all the

  91. What's NEW Photo: Thangaraj Kumaravel on Flickr

  92. FACEBOOK LOGIN New!

  93. REVIEW PROCESS App

  94. USER ID'S App-scoped

  95. FRIENDS LIST Limited

  96. FACEBOOK LOGIN New

  97. FACEBOOK LOGIN New REVIEW PROCESS App

  98. FACEBOOK LOGIN New REVIEW PROCESS App USER ID'S App-scoped

  99. FRIENDS LIST Limited FACEBOOK LOGIN New REVIEW PROCESS App USER

    ID'S App-scoped
  100. FRIENDS LIST Limited FACEBOOK LOGIN New REVIEW PROCESS App USER

    ID'S App-scoped D-DAY APRIL 30, 2015
  101. FRIENDS LIST Limited FACEBOOK LOGIN New REVIEW PROCESS App USER

    ID'S App-scoped D-DAY APRIL 30, 2015 Bob is totes mad
  102. <?php! namespace Facebook;! echo CONSTANT;

  103. change

  104. What’s in the FUTURE Photo: Andrew Becraft on Flickr

  105. None
  106. None
  107. How to stay UPDATED?

  108. developers.facebook.com/docs

  109. DEVELOPERS

  110. DOT

  111. FACEBOOK

  112. DOT

  113. COM

  114. SLASH

  115. DOCS

  116. developers.facebook.com/docs

  117. developers.facebook.com/docs

  118. developers.facebook.com/docs

  119. developers.facebook.com/docs/apps

  120. developers.facebook.com/docs/apps

  121. developers.facebook.com/docs/apps

  122. developers.facebook.com/docs/apps

  123. developers.facebook.com/docs/apps

  124. developers.facebook.com/docs/apps

  125. GRAPH VERSION SCHEDULES

  126. = GRAPH VERSION SCHEDULES TL;DR

  127. GRAPH VERSION SCHEDULES TL;DR Some stuffs

  128. GRAPH VERSION SCHEDULES TL;DR 90 DAYS Some stuffs

  129. GRAPH VERSION SCHEDULES TL;DR 90 DAYS Some stuffs Some stuffs

  130. GRAPH VERSION SCHEDULES TL;DR 90 DAYS 2 YEARS Some stuffs

    Some stuffs
  131. GRAPH VERSION SCHEDULES TL;DR 90 DAYS 2 YEARS Some stuffs

    Some stuffs Some stuffs…
  132. Facebook does reserve the right to make changes in any

    API in a short period of time for issues related to security or privacy. - Facebook Platform Versioning Docs “
  133. GRAPH VERSION SCHEDULES TL;DR 90 DAYS 2 YEARS Some stuffs

    Some stuffs Some stuffs
  134. GRAPH VERSION SCHEDULES TL;DR 90 DAYS 2 YEARS Some stuffs

    Some stuffs Some stuffs we’re U
  135. ENLIGHTENED Be an developer

  136. v EXPECTATION

  137. v EXPECTATION X

  138. v CHANGE

  139. v CHANGE ✓

  140. The Facebook platform CONSTANT Photo: Alex Abian on Flickr &

    UNCHANGING. is not these things.
  141. SAID YODA. Photo: Alex Abian on Flickr

  142. SAID YODA. Photo: Alex Abian on Flickr THAT ONE TIME.

  143. While developing SAID YODA. Photo: Alex Abian on Flickr THAT

    ONE TIME. a Facebook app.
  144. THANKS! Sammy Kaye Powers Photo: derriel street photography on Flickr

    @SammyK SammyK.me Host of @PHPRoundtable Chicago Facebook Developers West Coast Swing