+ All Categories
Home > Real Estate > iOS meets Social Media

iOS meets Social Media

Date post: 05-Dec-2014
Category:
Upload: open-knowledge-gmbh
View: 455 times
Download: 3 times
Share this document with a friend
Description:
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.
92
Java iOS meets Social Media Lars Röwekamp | open knowledge GmbH @mobileLarson @_openKnowledge
Transcript
Page 1: iOS meets Social Media

Java

iOS meets Social Media Lars Röwekamp | open knowledge GmbH

@mobileLarson@_openKnowledge

Page 2: iOS meets Social Media

Awesome, Twitter API.

YEAH!

Page 3: iOS meets Social Media
Page 4: iOS meets Social Media

Ok, wo liegt das Problem?

Page 5: iOS meets Social Media

Heterogene Lösungen

Page 6: iOS meets Social Media

OOPS sorry, we will work

on it!

Page 7: iOS meets Social Media

Awesome, Social API.

YEAH!

Page 8: iOS meets Social Media

„That‘s the way, we like it!“

Page 9: iOS meets Social Media

Social Media

Social Media Integration

‣Mehr als nur iOS Twitter/Facebook API

‣ Account Framework‣ Social Framework‣ Twitter Framework

Worum geht‘s?iOS meets ...

Page 10: iOS meets Social Media

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 ...

Page 11: iOS meets Social Media

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 ...

Page 12: iOS meets Social Media

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‘siOS meets ...

Page 13: iOS meets Social Media

Agenda Basiskonzepte // aus 10.000 m JSF 2

„Check Account“

Page 14: iOS meets Social Media

Social Media

Check Accounts

‣ Zugriff auf Account Store für Typ „X“‣ Accounts abfragen vom Typ „X“‣ Account nutzen

‣ ACAccountStore‣ ACAccountType‣ ACAccount

„Check Accounts“ VersioniOS meets ...

Page 15: iOS meets Social Media

Social Media

„Check Accounts“ VersioniOS meets ...

Page 16: iOS meets Social Media

Social Media iOS meets ...

„Check Accounts“ Version

Page 17: iOS meets Social Media

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 ...

ACAccountStore ACAccount

ACAccountCredentials

ACAccountType

„Check Accounts“ Version

Page 18: iOS meets Social Media

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

Page 19: iOS meets Social Media

Social Media

OAuth & Accounts

iOS meets ...„Check Accounts“ Version

Page 20: iOS meets Social Media

Social Media

OAuth & Accounts

iOS meets ...„Check Accounts“ Version

Page 21: iOS meets Social Media

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

Page 22: iOS meets Social Media

Code Diving ...

Page 23: iOS meets Social Media

Social Media

„Check Accounts“ VersioniOS meets ...

Page 24: iOS meets Social Media

Social Media

„Check Accounts“ VersioniOS meets ...

Page 25: iOS meets Social Media

Agenda Basiskonzepte // aus 10.000 m JSF 2

„Super Easy“

Page 26: iOS meets Social Media

Social Media

Share Content

‣ Content auswählen‣ Content sharen

‣ UIActivityViewController

„Super Easy“ VersioniOS meets ...

Page 27: iOS meets Social Media

Social Media

„Super Easy“ VersioniOS meets ...

Page 28: iOS meets Social Media

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“ VersioniOS meets ...

Page 29: iOS meets Social Media

Social Media

UIActivityViewController

‣ Twitter‣ Facebook‣ eMail‣ Copy to Clipboard‣ Print ‣ ...

„Super Easy“ VersioniOS meets ...

Page 30: iOS meets Social Media

Social Media

UIActivityViewController

‣ - initWithActivityItem:applicationActivities:

‣ completionHandler ‣ exludedActivityTypes

„Super Easy“ VersioniOS meets ...

Page 31: iOS meets Social Media

Code Diving ...

Page 32: iOS meets Social Media

Social Media

„Super Easy“ VersioniOS meets ...

Page 33: iOS meets Social Media

Social Media

„Super Easy“ VersioniOS meets ...

Page 34: iOS meets Social Media

Cool, aber wie definiere ich

eigene Activities?

Page 35: iOS meets Social Media

Social Media

Custom Activities

‣ Subclass von UIActivity‣ - activityImage:‣ - activityTitle / activityType:‣ - canPerformActionWithActivityItems: ...‣ - prepareWithActivityItems: ...‣ - perfomActivity:

„Super Easy“ VersioniOS meets ...

@interface ShareToPhotoAlbumActivity : UIActivity

Page 36: iOS meets Social Media

Social Media

Custom Activities

‣ Subclass von UIActivity‣ - activityImage:‣ - activityTitle / activityType:‣ - canPerformActionWithActivityItems: ...‣ - prepareWithActivityItems: ...‣ - perfomActivity:

„Super Easy“ VersioniOS meets ...

@interface ShareToPhotoAlbumActivity : UIActivity

Page 37: iOS meets Social Media

Social Media

„Super Easy“ VersioniOS meets ...

Not nil but @[myActivity]

Page 38: iOS meets Social Media

Agenda Basiskonzepte // aus 10.000 m JSF 2

„Still Easy“

Page 39: iOS meets Social Media

Social Media

Share Content II

‣ Content auswählen‣ Content sharen

‣ SLComposeViewController

„Still Easy“ VersioniOS meets ...

Page 40: iOS meets Social Media

Social Media iOS meets ...

„Still Easy“ Version

Page 41: iOS meets Social Media

Social Media

SLComposeViewController

‣ Bestandteil des SocialKit (iOS 6)‣ „Neutraler“ Social Network Sharer‣ SLServiceTypeTwitter‣ SLServiceTypeFacebook‣ SLServiceTypeSinaWeibo‣Manueller „Service Available“ Check

„Still Easy“ VersioniOS meets ...

Page 42: iOS meets Social Media

Social Media

SLComposeViewController

‣+ isAvailableForServiceType:‣+ composeViewControllerForServiceType:‣ - setInitialText:‣ - addImage/addURL:‣ - removeAllImages/removeAllURLs:

‣ completionHandler

„Still Easy“ VersioniOS meets ...

Page 43: iOS meets Social Media

Code Diving ...

Page 44: iOS meets Social Media

Social Media

„Still Easy“ VersioniOS meets ...

Page 45: iOS meets Social Media

Social Media

„Still Easy“ VersioniOS meets ...

Page 46: iOS meets Social Media

Agenda Basiskonzepte // aus 10.000 m JSF 2

„Kind of Cool“

Page 47: iOS meets Social Media

Social Media

my Twitter

‣ Tweets schreiben/versenden‣ Timeline anzeigen/aktualisieren‣Mentions anzeigen/aktualisieren‣ Infos zum Twitter Account

‣ SLRequest

„Kind of Cool“ VersioniOS meets ...

Page 48: iOS meets Social Media

Social Media iOS meets ...

„Kind of Cool“ Version

Page 49: iOS meets Social Media

Social Media

SLRequest

‣ Direkte Interaktion mit Social Networks‣ via Account Framework (!)

‣ Social Network spezifischer Call‣ evtl. inkl. Zusatzdaten (!)

„Kind of Cool“ VersioniOS meets ...

Page 50: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

SLRequest

performRequestWithHandler][slrequest

Page 51: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

preparedURLRequest][slrequest

SLRequest

Page 52: iOS meets Social Media

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“ VersioniOS meets ...

Page 53: iOS meets Social Media

Code Diving ...

Page 54: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

Page 55: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

Page 56: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

‣ Step 1: Account Token anfragen

Page 57: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

‣ Step 2: Request erstellen

Page 58: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

‣ Step 3: Request absetzen

Page 59: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

‣ Step 4: Response empfangen

Page 60: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

‣ Step 5: Response behandeln

Page 61: iOS meets Social Media

Cool, aber wie teste ich die ganzen

Twitter Calls?

Page 62: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

‣ Twitter API 1.1 Doc

Page 63: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

‣ Twitter 4 Mac Console

Page 64: iOS meets Social Media

Social Media

„Kind of Cool“ VersioniOS meets ...

‣ Twitter apigee Console

Page 65: iOS meets Social Media

Agenda Basiskonzepte // aus 10.000 m JSF 2

„eXtreme“

Page 66: iOS meets Social Media

Social Media

my Facebook

‣ Beitrag posten ‣ Profile anzeigen ‣Wall anzeigen‣ Liken‣ ...

‣ SLRequest

„eXtreme“ VersioniOS meets ...

Page 67: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

OOPS! WTH?

„MissingFacebookAppIDError“

Page 68: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 69: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 70: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 71: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 72: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 73: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 74: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 75: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 76: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 77: iOS meets Social Media

Cool, aber wie teste ich die ganzen

Facebook Calls?

Page 78: iOS meets Social Media

Social Media

„eXtreme“ VersioniOS meets ...

Page 79: iOS meets Social Media

It‘s not always easy ...

iOS meets...

Social Media

Page 80: iOS meets Social Media

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

PitfallsiOS meets ...

Page 81: iOS meets Social Media

Just one more Thing ...

Page 82: iOS meets Social Media

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 ThingiOS meets ...

Page 83: iOS meets Social Media

Social Media

Just one more ThingiOS meets ...

Page 84: iOS meets Social Media

Social Media

Just one more ThingiOS meets ...

Page 85: iOS meets Social Media

Social Media

Just one more ThingiOS meets ...

Page 86: iOS meets Social Media

Social Media

Just one more ThingiOS meets ...

Page 87: iOS meets Social Media

Social Media

Just one more ThingiOS meets ...

Page 88: iOS meets Social Media

Social Media

Just one more ThingiOS meets ...

Page 89: iOS meets Social Media

JavaGet started today ...

The Social Framework Reference

Page 90: iOS meets Social Media

JavaGet started today ...

The Social Framework Reference

https://github.com/stuarticus/socialframework

Page 92: iOS meets Social Media

Java

iOS meets Social Media Lars Röwekamp | open knowledge GmbH

@mobileLarson@_openKnowledge


Recommended