pictures Social Engineering Session 306 Integrating with Facebook, Twitter, and Sina Weibo Lestat Ali iOS Software Engineer Julien Robert OS X Software Engineer
button 2. On click, present NSSharingServicePicker 3. Specify a delegate for the user-selected service 4. Implement the delegate methods for the service
service = [NSSharingService sharingServiceNamed: NSSharingServiceNamePostOnTwitter]; service.delegate = self; [service performWithItems:items]; •Enable your control conditionally
key ACFacebookClientAccessInfo @{ ACFacebookAppIDKey: @”123456789”, ACFacebookAppVersionKey: @”1.0”, ACFacebookPermissionsKey: @[@”publish_stream”, ...], ACFacebookPermissionGroupKey: @”write” } •In next seed, pass it as an argument when requesting access
is invalid •Attempt to renew by calling -[ACAccountStore renewCredentialsForAccount:withHandler:] •On completion ACAccountCredentialRenewalRenewed ACAccountCredentialRenewalRejected
is invalid •Attempt to renew by calling -[ACAccountStore renewCredentialsForAccount:withHandler:] •On completion ACAccountCredentialRenewalRenewed ACAccountCredentialRenewalRejected ACAccountCredentialRenewalFailed
Framework https://developer.apple.com/library/ios/ Social Framework https://developer.apple.com/ue Apple Developer Forums https://devforums.apple.com Third-Party Documentation Facebook SDK https://developers.facebook.com/docs/ Twitter API https://dev.twitter.com/docs Sina Weibo API http://open.weibo.com/wiki/
OS X—NSSharingServicePicker •Advanced integration gives you more control ▪ Accounts framework allows access to user account ▪ Let SLRequest sign requests for you
OS X—NSSharingServicePicker •Advanced integration gives you more control ▪ Accounts framework allows access to user account ▪ Let SLRequest sign requests for you •FBConnect will get you automatic support