Your SlideShare is downloading. ×
iOS meets Social Media
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

iOS meets Social Media

173
views

Published on

Speaker: Lars Röwekamp …

Speaker: Lars Röwekamp
MobileTechCon 2013 Berlin

Wer sich bereits in iOS 5 mit dem Twitter-API beschäftigt hat, wird sich sicherlich die Frage gestellt haben, warum Apple keinen allgemeinen Ansatz zur Anbindung von Social Networks anbietet. Genau diese Lücke füllt das in iOS 6 eingeführte Social-Framework und hebt so den proprietären Twitter-Ansatz auf eine höhere Abstraktionsebene. Die Session zeigt, wie das neue API angewendet wird und welche neuen, vielfältigen Möglichkeiten sich dank Social-Framework für die eigenen Apps ergeben.

Published in: Real Estate, Technology, Business

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
173
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Java iOS meets Social Media Lars Röwekamp | open knowledge GmbH @mobileLarson @_openKnowledge
  • 2. Awesome, Twitter API. YEAH!
  • 3. Ok, wo liegt das Problem?
  • 4. Heterogene Lösungen
  • 5. OOPS sorry, we will work on it!
  • 6. Awesome, Social API. YEAH!
  • 7. „That‘s the way, we like it!“
  • 8. Social Media Social Media Integration ‣ Mehr als nur iOS Twitter/Facebook API ‣ Account Framework ‣ Social Framework ‣ Twitter Framework Worum geht‘s? iOS meets ...
  • 9. Social Media Social Media Integration ‣ „Single Sign on“ Feeling ‣ via OAuth Web Authentication ‣ Twitter (ab iOS 5) ‣ Facebook (ab iOS 6) ‣ Sina‘s Weibo (ab iOS 6) Worum geht‘s? iOS meets ...
  • 10. Social Media Social Media Integration ‣ Was sind die typischen Use-Cases? ‣ Was genau ist OAuth / Accounts? ‣ Wie share ich Content? ‣ Wie nutze ich Specials ? ‣ Wo liegen die Pitfalls? Worum geht‘s heute? iOS meets ...
  • 11. Social Media Typische Use Cases ‣ On-Device Account Verwaltung ‣ Mehrere Konten pro Service ‣ Mehrere Clients pro Service/Konto ‣ Content sharen ‣ Service „Specials“ nutzen ‣ .... Worum geht‘s iOS meets ...
  • 12. Agenda Basiskonzepte // aus 10.000 mJSF 2 „Check Account“
  • 13. Social Media Check Accounts ‣ Zugriff auf Account Store für Typ „X“ ‣ Accounts abfragen vom Typ „X“ ‣ Account nutzen ‣ ACAccountStore ‣ ACAccountType ‣ ACAccount „Check Accounts“ Version iOS meets ...
  • 14. Social Media „Check Accounts“ Version iOS meets ...
  • 15. Social Media iOS meets ... „Check Accounts“ Version
  • 16. Social Media Was ist Accounts ‣ Allgemeine Verwaltung via ACAccountStore ‣ Zugriff auf spezielles Account via ACAccount ‣ Social Network Indikator via ACAccountType ‣ Authentifizierung via ACAccountCredentials iOS meets ... ACAccount Store ACAccount ACAccount Credentials ACAccount Type „Check Accounts“ Version
  • 17. Social Media Was ist Accounts ‣ Allgemeine Verwaltung via ACAccountStore ‣ Zugriff auf spezielles Account via ACAccount ‣ Social Network Indikator via ACAccountType ‣ Authentifizierung via ACAccountCredentials iOS meets ... „Check Accounts“ Version
  • 18. Social Media OAuth & Accounts iOS meets ... „Check Accounts“ Version
  • 19. Social Media OAuth & Accounts iOS meets ... „Check Accounts“ Version
  • 20. Social Media OAuth & Accounts ‣ Accounts können zur Laufzeit der App geändert werden! ‣ App sollte auf Account-Änderungen gezielt reagieren. iOS meets ... more to come ... „Check Accounts“ Version
  • 21. Code Diving ...
  • 22. Social Media „Check Accounts“ Version iOS meets ...
  • 23. Social Media „Check Accounts“ Version iOS meets ...
  • 24. Agenda Basiskonzepte // aus 10.000 mJSF 2 „Super Easy“
  • 25. Social Media Share Content ‣ Content auswählen ‣ Content sharen ‣ UIActivityViewController „Super Easy“ Version iOS meets ...
  • 26. Social Media „Super Easy“ Version iOS meets ...
  • 27. Social Media UIActivityViewController ‣ Ergänzung des UIKit (iOS 6) ‣ Default & Custom Actions ‣ Automatischer „Content 2 Endpoint“ Check ‣ Automatischer „Service Available“ Check ‣ ähnlich wie ShareKit Framework „Super Easy“ Version iOS meets ...
  • 28. Social Media UIActivityViewController ‣ Twitter ‣ Facebook ‣ eMail ‣ Copy to Clipboard ‣ Print ‣ ... „Super Easy“ Version iOS meets ...
  • 29. Social Media UIActivityViewController ‣ - initWithActivityItem:applicationActivities: ‣ completionHandler ‣ exludedActivityTypes „Super Easy“ Version iOS meets ...
  • 30. Code Diving ...
  • 31. Social Media „Super Easy“ Version iOS meets ...
  • 32. Social Media „Super Easy“ Version iOS meets ...
  • 33. Cool, aber wie definiere ich eigene Activities?
  • 34. Social Media Custom Activities ‣ Subclass von UIActivity ‣ - activityImage: ‣ - activityTitle / activityType: ‣ - canPerformActionWithActivityItems: ... ‣ - prepareWithActivityItems: ... ‣ - perfomActivity: „Super Easy“ Version iOS meets ... @interface ShareToPhotoAlbumActivity : UIActivity
  • 35. Social Media Custom Activities ‣ Subclass von UIActivity ‣ - activityImage: ‣ - activityTitle / activityType: ‣ - canPerformActionWithActivityItems: ... ‣ - prepareWithActivityItems: ... ‣ - perfomActivity: „Super Easy“ Version iOS meets ... @interface ShareToPhotoAlbumActivity : UIActivity
  • 36. Social Media „Super Easy“ Version iOS meets ... Not nil but @[myActivity]
  • 37. Agenda Basiskonzepte // aus 10.000 mJSF 2 „Still Easy“
  • 38. Social Media Share Content II ‣ Content auswählen ‣ Content sharen ‣ SLComposeViewController „Still Easy“ Version iOS meets ...
  • 39. Social Media iOS meets ... „Still Easy“ Version
  • 40. Social Media SLComposeViewController ‣ Bestandteil des SocialKit (iOS 6) ‣ „Neutraler“ Social Network Sharer ‣ SLServiceTypeTwitter ‣ SLServiceTypeFacebook ‣ SLServiceTypeSinaWeibo ‣ Manueller „Service Available“ Check „Still Easy“ Version iOS meets ...
  • 41. Social Media SLComposeViewController ‣ + isAvailableForServiceType: ‣ + composeViewControllerForServiceType: ‣ - setInitialText: ‣ - addImage/addURL: ‣ - removeAllImages/removeAllURLs: ‣ completionHandler „Still Easy“ Version iOS meets ...
  • 42. Code Diving ...
  • 43. Social Media „Still Easy“ Version iOS meets ...
  • 44. Social Media „Still Easy“ Version iOS meets ...
  • 45. Agenda Basiskonzepte // aus 10.000 mJSF 2 „Kind of Cool“
  • 46. Social Media my Twitter ‣ Tweets schreiben/versenden ‣ Timeline anzeigen/aktualisieren ‣ Mentions anzeigen/aktualisieren ‣ Infos zum Twitter Account ‣ SLRequest „Kind of Cool“ Version iOS meets ...
  • 47. Social Media iOS meets ... „Kind of Cool“ Version
  • 48. Social Media SLRequest ‣ Direkte Interaktion mit Social Networks ‣ via Account Framework (!) ‣ Social Network spezifischer Call ‣ evtl. inkl. Zusatzdaten (!) „Kind of Cool“ Version iOS meets ...
  • 49. Social Media „Kind of Cool“ Version iOS meets ... SLRequest performRequestWithHandler][slrequest
  • 50. Social Media „Kind of Cool“ Version iOS meets ... preparedURLRequest][slrequest SLRequest
  • 51. Social Media SLRequest ‣ Step 1: Account Token anfragen ‣ Step 2: Request erstellen ‣ Step 3: Request absetzen ‣ Step 4: Response empfangen ‣ Step 5: Response behandeln „Kind of Cool“ Version iOS meets ...
  • 52. Code Diving ...
  • 53. Social Media „Kind of Cool“ Version iOS meets ...
  • 54. Social Media „Kind of Cool“ Version iOS meets ...
  • 55. Social Media „Kind of Cool“ Version iOS meets ... ‣ Step 1: Account Token anfragen
  • 56. Social Media „Kind of Cool“ Version iOS meets ... ‣ Step 2: Request erstellen
  • 57. Social Media „Kind of Cool“ Version iOS meets ... ‣ Step 3: Request absetzen
  • 58. Social Media „Kind of Cool“ Version iOS meets ... ‣ Step 4: Response empfangen
  • 59. Social Media „Kind of Cool“ Version iOS meets ... ‣ Step 5: Response behandeln
  • 60. Cool, aber wie teste ich die ganzen Twitter Calls?
  • 61. Social Media „Kind of Cool“ Version iOS meets ... ‣ Twitter API 1.1 Doc
  • 62. Social Media „Kind of Cool“ Version iOS meets ... ‣ Twitter 4 Mac Console
  • 63. Social Media „Kind of Cool“ Version iOS meets ... ‣ Twitter apigee Console
  • 64. Agenda Basiskonzepte // aus 10.000 mJSF 2 „eXtreme“
  • 65. Social Media my Facebook ‣ Beitrag posten ‣ Profile anzeigen ‣ Wall anzeigen ‣ Liken ‣ ... ‣ SLRequest „eXtreme“ Version iOS meets ...
  • 66. Social Media „eXtreme“ Version iOS meets ... OOPS! WTH? „MissingFacebookAppIDError“
  • 67. Social Media „eXtreme“ Version iOS meets ...
  • 68. Social Media „eXtreme“ Version iOS meets ...
  • 69. Social Media „eXtreme“ Version iOS meets ...
  • 70. Social Media „eXtreme“ Version iOS meets ...
  • 71. Social Media „eXtreme“ Version iOS meets ...
  • 72. Social Media „eXtreme“ Version iOS meets ...
  • 73. Social Media „eXtreme“ Version iOS meets ...
  • 74. Social Media „eXtreme“ Version iOS meets ...
  • 75. Social Media „eXtreme“ Version iOS meets ...
  • 76. Cool, aber wie teste ich die ganzen Facebook Calls?
  • 77. Social Media „eXtreme“ Version iOS meets ...
  • 78. It‘s not always easy ... iOS meets... Social Media
  • 79. Social Media Social Media Integration ‣ Sorry, ich habe keinen Account ‣ Sorry, ich habe mehrere Accounts ‣ Sorry, ich habe den Account geändert ‣ Sorry, ich würde gerne mal testen ‣ Sorry, ich habe kein iOS 6 ‣ It‘s more than just a Social Media APIs Pitfalls iOS meets ...
  • 80. Just one more Thing ...
  • 81. Social Media Account Data Changed ‣ Accounts können zur Laufzeit der App geändert werden! ‣ App sollte unbedingt auf Account-Änderungen gezielt reagieren. Just one more Thing iOS meets ...
  • 82. Social Media Just one more Thing iOS meets ...
  • 83. Social Media Just one more Thing iOS meets ...
  • 84. Social Media Just one more Thing iOS meets ...
  • 85. Social Media Just one more Thing iOS meets ...
  • 86. Social Media Just one more Thing iOS meets ...
  • 87. Social Media Just one more Thing iOS meets ...
  • 88. Java Get started today ... The Social Framework Reference
  • 89. Java Get started today ... The Social Framework Reference https://github.com/stuarticus/socialframework
  • 90. Java Get started today ... The Social Framework Reference https://github.com/stuarticus/socialframework http://developer.facebook.com/docs http://dev.twitter.com/wiki http://open.weibo.com/docs
  • 91. Java iOS meets Social Media Lars Röwekamp | open knowledge GmbH @mobileLarson @_openKnowledge