get social with facebook

30
From Zero to Hero! Sondre Bjellås www.sondreb.com Deepmind AS «Get Social With Facebook »

Upload: sondre-bjellas

Post on 12-Jun-2015

1.867 views

Category:

Entertainment & Humor


1 download

DESCRIPTION

Slides from my talk at the NDC 2012 on the Facebook Developer Plattform.

TRANSCRIPT

Page 1: Get Social With Facebook

From Zero to Hero!

Sondre Bjellås www.sondreb.comDeepmind AS www.deepmind.no

«Get Social With Facebook»

Page 2: Get Social With Facebook

http://www.flickr.com/photos/bdewey/

Page 3: Get Social With Facebook

1. Why Social?

2. Facebook Developer Platform

3. Become The Hero!

Page 4: Get Social With Facebook
Page 5: Get Social With Facebook

1. Why Social?

Page 6: Get Social With Facebook

1 billion reasons!

• Facebook is estimated to reach 1 billion users in 2012.

• One of the biggest market opportunity in history of mankind.

• That is still just «only» 1 in every 7 human being on the planet...

Page 7: Get Social With Facebook
Page 8: Get Social With Facebook

What is WAS the Largest and Fastest Growing Social Game EVER?

Page 9: Get Social With Facebook
Page 10: Get Social With Facebook

Social Can Be Scary

• There are truly to much information available on everyone. It grows every day.

• Take responsibility, just because you can, doesn’t mean you should.

Page 11: Get Social With Facebook

www.touchgraph.com

Page 12: Get Social With Facebook

2. The Developer Platform

Page 13: Get Social With Facebook

Facebook Graph API

• The mapping of everybody and how they’re related.

• In Facebook context, it’s You and Your Users.

• API with JSON formatting for all the user’s information.

Page 14: Get Social With Facebook

Facebook Open Graph

Page 15: Get Social With Facebook

AGGREATIONS

ACTIONS

OBJECTS

Page 16: Get Social With Facebook

Facebook Credits

Page 17: Get Social With Facebook
Page 18: Get Social With Facebook

Why Do you Store Passwords?!

Page 19: Get Social With Facebook

Authentication

• Used to be hard, has become easy with OAuth 2.0. Does require HTTPS.

• One Token To Rule Them All!1. Get Token.2. Use Token.

• Valid from one hour and up to one day.

Page 20: Get Social With Facebook

developers.facebook.com

Page 21: Get Social With Facebook

My Site

My App

My App

Page 22: Get Social With Facebook

My Site

My App

My App

Page 23: Get Social With Facebook

It all starts with an app

First create your app on the developer portal: https://developers.facebook.com/apps

Page 24: Get Social With Facebook

3. Become The Hero

Page 25: Get Social With Facebook

3. Become The Hero

• Start from scratch, from zero.• Prototype your app.• Fresh it up with some style!

Page 26: Get Social With Facebook

Install-Package Facebook

Page 27: Get Social With Facebook

Facebook JavaScript SDK

// Load the SDK Asynchronously (function (d) { var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) { return; } js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; ref.parentNode.insertBefore(js, ref); } (document));

https://developers.facebook.com/docs/reference/javascript/

Page 28: Get Social With Facebook

Demo

Page 29: Get Social With Facebook

Considerations

• Which requests to handle on the client, directly to Facebook.

• Which requests to handle on the server, acting as a proxy towards Facebook.

Page 30: Get Social With Facebook

Thanks!

Sondre BjellåsSenior Solutions ArchitectDeepmind AS

www.deepmind.nowww.sondreb.com