Upgrade to Pro — share decks privately, control downloads, hide ads and more …

iOS 11 Social Framework is dead! To the Twitter Kit!!

53b6d9a544151a9d620b0003d5fd512f?s=47 niwasawa
October 06, 2017

iOS 11 Social Framework is dead! To the Twitter Kit!!

Mobile Act NAGOYA #7 LT 資料

『Mobile Act NAGOYA #7』でLTをしてきました - niwasawaの迷子センター
http://niwasawa.hatenablog.jp/entry/20171006/mobile-act-nagoya-7

53b6d9a544151a9d620b0003d5fd512f?s=128

niwasawa

October 06, 2017
Tweet

Transcript

  1. iOS 11 Social Framework is dead! To the Twitter Kit!!

    ໎ࢠϥϘ Naoki Iwasawa @niwasawa
  2. ೔ຊ࣌ؒ 2017೥9݄20೔(ਫ༵೔) iOS 11 ϦϦʔε

  3. ಉ೔ʹΪϦΪϦͰɺࣗ࡞ͷΞϓϦΛ iOS 11 ʹରԠͯ͠ϦϦʔεͰ͖ͨ

  4. None
  5. Location Post Ґஔ (Ң౓ɾܦ౓) Λϝλ৘ใͱͯ͠෇Ճͨ͠π ΠʔτΛ౤ߘͰ͖Δ Ґஔ͸஍ਤUIͰ৔ॴΛࢦఆ͢Δ Ͳ͏͍͏ΞϓϦ͔ɾɾɾ

  6. None
  7. Location Post Twitter ެࣜΫϥΠΞϯτͰ΋GPSҐஔΛπΠʔτʹ ෇Ճ͢Δ͜ͱ͕Ͱ͖Δ͕ਫ਼౓͕ѱ͍ͱ͖͸ζϨΔ Location Post ͸ࣗ෼ͰҐஔΛࢦఆ͢ΔͷͰɺGPSਫ਼ ౓͕ѱͯ͘΋໰୊ͳ͍

  8. Ґஔ৘ใ෇͖πΠʔτ͍ͨ͠ਓ ͋Μ·Γ͍ͳ͍ ↓ धཁͳ͠ (ʀ´∀ʆ)

  9. ษڧձͷ৔ॴΛ πΠʔτͨ͠Γˠ Ͳ͔͜ԕ͍ͱ͜ΖͷҐஔΛ πΠʔτͨ͠Γͯ͠ɺඍົ ʹҐஔ࠮শͱ͔ͨ͠Γ ศརͰ͢Αʁ

  10. SNSө͑͢ΔҐஔ৘ใ ͱ͔ྲྀߦΒͳ͍͔ͳɾɾɾ

  11. Location Post Twitter ؔ࿈ͷॲཧʹ Social Framework Λ࢖༻ Social Framework ͸

    iOS ඪ४ϥΠϒϥϦ
  12. Social Framework ͱ͸ Twitter ΍ Facebook ͷΞΧ΢ϯτ؅ཧ΍౤ߘͳͲͷ ػೳΛ࣋ͬͨϥΠϒϥϦɻiOS ඪ४ϥΠϒϥϦʹ ೖ͍ͬͯΔɻ

  13. iOS 11 ͔Β Social Framework ͕࢖͑ͳ͘ͳΔͬͯʁ

  14. ͋Εʁ Ҏલʹݟͨͱ͖͸ެࣜͷ Twitter ΞϓϦ͕Πϯετʔϧ͞Ε͍ͯ Ε͹େৎ෉Έ͍ͨͳ࿩Λฉ͍͚ͨͲɾɾɾ

  15. iOS 11 ͕ϦϦʔε͞ΕΔ 1िؒલ

  16. ೔ຊ࣌ؒ 2017೥9݄13೔(ਫ༵೔) iOS 11 GM ϦϦʔε

  17. GM (Golden Master)͸ ຊϦϦʔε൛ʹͳΔ͸ͣͷόʔδϣϯ(க ໋తͳෆ۩߹͕ͳ͚Ε͹ɾɾɾ)

  18. iOS 11 GM ͕ϦϦʔε͞ΕͯͷͰ iOS ୺຤ʹ Πϯετʔϧͯ͠ΈͨΒ OS ʹΑΔ Twitter

    ΞΧ΢ϯτͷ؅ཧػೳ͕ഇࢭ͞ΕͱΔΣ ƅЧƅ)
  19. ·͔͡ ʀʅ˲ʆ

  20. Twitter ΞΧ΢ϯτ؅ཧ͸ Social Framework ʹ ׬શʹ͓·͔ͤͩͬͨͷʹ

  21. ͯ͞ɺͲ͏΍ͬͯରԠ͠Α͏

  22. ୅ସͱͯ͠ Twitter Kit ͱ ͍͏ϥΠϒϥϦ͕ྑ͍Β͍͠

  23. Migrating from iOS Social Framework — Twitter Developers https://dev.twitter.com/twitterkit/ios/migrate-social-framework

  24. Twitter Kit ͱ͸ Twitter ެ͕ࣜఏڙ͍ͯ͠Δ Twitter ͷΞΧ΢ϯτ؅ ཧ΍౤ߘͳͲͷػೳΛ࣋ͬͨϥΠϒϥϦɻ

  25. ͜ΕͰ͍͍͡ΌΜʂ

  26. Social Framework ↓ Twitter Kit

  27. Social Framework ͔Β Twitter Kit ΁ͷҠߦ͸ΘΓͱ༰қ

  28. Migrating from iOS Social Framework — Twitter Developers https://dev.twitter.com/twitterkit/ios/migrate-social-framework

  29. None
  30. Twitter Kit ͘͢͝ϥΫ (∩´∀ʆ)∩ƂŖŘ

  31. Migrating from iOS Social Framework — Twitter Developers https://dev.twitter.com/twitterkit/ios/migrate-social-framework

  32. Migrating from iOS Social Framework — Twitter Developers https://dev.twitter.com/twitterkit/ios/migrate-social-framework

  33. Twitter ༻ʹΫϥ εΛ෼͚͓͍ͯͯΑ ͔ͬͨ TwitterManager ͱ͍͏ΫϥεΛͻ ͱͭ࡞੒ͯ͠ɺ Social Framework ͷॲཧΛ͢΂ͯ͜ͷΫϥεʹू໿

    ͍ͯͨ͠ɻTwitter Kit ΁ͷҠߦ͸ ͜ͷΫϥεΛमਖ਼ɻଞͷॲཧʹ ͸Өڹ͠ͳ͍ɻ
  34. ϥΠϒϥϦґଘ෦෼͸෼͚ͯ ॻ͍͓ͯ͘ͷ͕٢

  35. ϥΠϒϥϦґଘ෦෼͸෼͚ͯॻ͍͓ͯ͘ͷ͕٢ (ͱ͸͍͑ Social Framework ͸ඪ४ϥΠϒϥ ϦͳΜ͚ͩͲɺͳΜͰಥવഇࢭ͋͋͜Θ͍ɾɾɾ)

  36. Twitter Kit ͰϋϚͬͨͱ͜Ζ ͳ͔ͥೝূͰΤϥʔ͕ൃੜ Error Domain=TWTRNetworkingErrorDomain Code=-1011 "Request failed: unauthorized

    (401)” Twitter API Λ௚઀ίʔϧͯ͠ௐ΂ͯΈͨΒ……
  37. None
  38. ͳͥ ϦʔυΦϯϦʔ…

  39. None
  40. Read and Write ʹ ͳͬͯΔͷʹ

  41. None
  42. Note: Changes to the application permission model will only reflect

    in access tokens obtained after the permission model change is saved. You will need to re-negotiate existing access tokens to alter the permission level associated with each of your application's users.
  43. Consumer Key (API Key) ͱ Consumer Secret (API Secret) Λ࠶ੜ੒͢Δඞཁ͕͋ΔΒ͍͠ɻ

    ͍΍ɺͰ΋ɺύʔϛογϣϯมߋͳΜͯͯ͠ͳͯ͘ Twitter Application ࡞ͬͨͱ͖ͷ··ͳΜ͚ͩͲ……
  44. ͨΊ͠ʹ Consumer Key (API Key) ͱ Consumer Secret (API Secret)

    Λ ࠶ੜ੒ͨ͠ΒೝূΤϥʔফ͑ͨ ͳΜͰͩ (ʀ´∀ʆ)∩
  45. (∩´∀ʆ)∩ MAIKKA!

  46. ͋·Γधཁ͸ͳ͍ͱࢥ͍·͕͢ Ґஔ৘ใ෇͖πΠʔτͷίʔυΛ ঺հ͠·͢

  47. POST statuses/update

  48. POST statuses/update — Twitter Developers https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses- update

  49. None
  50. iOS 11 Social Framework is dead! To the Twitter Kit!!

    ໎ࢠϥϘ Naoki Iwasawa @niwasawa