integrate business apps with facebook, twitter, and linkedin

25
Integrate Business Apps with Facebook, Twitter, and LinkedIn Mark Trang, SocialPandas, CEO @marktrang Jason Ouellette, SocialPandas, CTO @jmouel

Upload: salesforce-developers

Post on 05-Dec-2014

575 views

Category:

Documents


3 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Integrate Business Apps

with Facebook, Twitter, and LinkedIn

Mark Trang, SocialPandas, CEO

@marktrang

Jason Ouellette, SocialPandas, CTO

@jmouel

Page 2: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Safe Harbor

Safe harbor statement under the Private Securities Litigation Reform Act of 1995:

This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if

any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-

looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of

product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of

management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments

and customer contracts or use of our services.

The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our

service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth,

interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other l itigation, risks associated

with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain,

and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling

non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the

financial results of salesforce.com, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended July 31, 2012. This

documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site.

Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may

not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently

available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

Page 3: Integrate Business Apps with Facebook, Twitter, and LinkedIn

SocialPandas: Social Selling Platform for B2B

What We Do Who We Are We’re Hiring!

Leads

Revenue

Investors include:

Page 4: Integrate Business Apps with Facebook, Twitter, and LinkedIn

The Social Business Era is Here

Marketing & PR

Customer Service Collaboration

Recruiting

Generate and monitor viral awareness

Internal social employee collaboration

Attract talent via social networks

Deliver customer service via social

HR

Manage & develop employees

CRM

Engage and grow customer relationships

Page 5: Integrate Business Apps with Facebook, Twitter, and LinkedIn

What This Means for You

New IT Projects New Consulting Gigs New Companies to Join

(or start yourself!)

Page 6: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Jason Ouellette

Chief Technology Officer

Page 7: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Agenda

Social API overview

Sample app

Demo

Component walkthrough

Dependencies

Social identity & authentication

Social data import workers

Wrap-up, resources, Q&A

Page 8: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Social API Overview

Provider Data Examples Restrictions

Facebook Objects (Users, Groups, Events)

Relationships (Friends, Likes)

Undocumented

LinkedIn People

Companies

Groups

Jobs

Daily “Throttle Limits” per User,

Application

Twitter Users

Relationships (Followers, Friends)

Tweets

Hourly Limits

Rate Limits per API Type

Chatter Users

Feeds (Posts, Comments)

Daily API Request Limit

Query Language Limits

Page 9: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Demo

Page 10: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Component Walkthrough (1/2)

Rails

PostgreSQL

CoffeeScript

Sass

Bootstrap

Gems to provide social API access

Page 11: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Component Walkthrough (2/2)

Sessions Controller

People

Game Controller

Workers

Game Client (JS)

index.html Sign in/out

Import (from Social API Provider)

Names, Photo URLs

Get people,

Eval answer

Page 12: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Dependencies

GEM Purpose URL

omniauth External Authentication https://github.com/intridea/omniauth

twitter Twitter - Followers, Friends http://twitter.rubyforge.org

linkedin LinkedIn - People https://github.com/pengwynn/linkedi

n

koala Facebook - Users https://github.com/arsduo/koala

databasedotcom Chatter - Users https://github.com/heroku/database

dotcom

Page 13: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Social Identity & Authentication (1/4)

Create models

rails generate scaffold User \

name:string photo_url:string

rails generate scaffold Authentication \

user_id:integer provider:integer \

uid:string token:string refresh_token:string info:string

rails generate scaffold Person \

user_id:integer name:string photo_url:string provider:integer

Page 14: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Social Identity & Authentication (2/4)

Initialize OmniAuth (config/initializers/omniauth.rb)

Page 15: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Social Identity & Authentication (3/4)

Lookup and create user, authentication records via model

Page 16: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Social Identity & Authentication (4/4)

Wire up sign-in and sign-out to OmniAuth

Page 17: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Play the game: http://www.socialnamegame.com

Page 18: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Social Data Import Workers (1/4)

Facebook

Page 19: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Social Data Import Workers (2/4)

LinkedIn

Page 20: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Social Data Import Workers (3/4)

Twitter

Page 21: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Sample App: Social Data Import Workers (4/4)

Salesforce

Page 22: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Wrap-Up

Social APIs are easy to use, but intentionally limited by providers

Like database calls in Apex, bulkify your Social API calls

Cache data where permitted

Think about client vs. server usage patterns, mix and match

Embrace OAuth for identity and authentication

Avoid the chore of managing your own user authentication scheme

Go forth and build social apps!

Page 23: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Resources

Sample app code

https://github.com/jmouel/socialnamegame

Getting started with Rails, Rails 3.x on Heroku

http://guides.rubyonrails.org/getting_started.html

https://devcenter.heroku.com/articles/rails3

Identity and authentication

Simple OmniAuth: http://railscasts.com/episodes/241-simple-omniauth

Devise: https://github.com/plataformatec/devise

Page 24: Integrate Business Apps with Facebook, Twitter, and LinkedIn

Mark Trang

CEO / SocialPandas,

@marktrang

Jason Ouellette

CTO / SocialPandas,

@jmouel

Page 25: Integrate Business Apps with Facebook, Twitter, and LinkedIn