SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
FB Connect in under 15
Make your site social in 15 minutes or less ;-)




Emmanuel Pozo
Twitter @Jewgonewild
Co Founder at Pikchur.com
05.30.2009
I can haz Agenda?
 1          Intro and Stats

 2        What is FB Connect

 3          How it’s done

 4              Demo

 5       Thoughts, Questions
1.Introandstats.
Intro and Stats
We don’t like this!
Intro and Stats
Solutions
Intro and Stats
FB Connect Usage Stats

▪   Released on December 4th 2008
▪   1 million + users and growing
▪   Average large connect site has 2,500 -
    8,000 users
▪   Few applications with tens of thousands &
    iPhoto is the only app with hundreds of
    thousands of users
▪   FB Connect is the leading identity platform
2.WhatisFBConnect?
What is FB Connect?
FB Connect.. ha?

▪   Single sign on service
▪   Seamlessly connect user’s Facebook
    account to your site
▪   Keeps the experience social
▪   Enables easy sharing experience
What is FB Connect?
Interaction.
What is FB Connect?
Typical web view.
3.Howit’sdone!
How it’s done
Step 1

▪   Download API wrapper classes
▪   Create an app (http://www.facebook.com/developers/createapp.php)
▪   Go to Connect tab & set Connect URL
▪   Base Domain (optional for subdomain access)
▪   Grab your app’s API key. You’ll need it
How it’s done
Step 2

▪   Create cross domain communication
    channel file.
▪   xd_receiver.htm with the following JS




▪   Place it in your apps root or wherever you
    want to serve the connect pages.
How it’s done
Step 3

▪   Initialize FB connect libraries via JS
▪   <script
    type=”texgfjdhgjgdfgggggggggggggggggggggggggggg



▪   <script type=”text/
    javascript”>FB.Bootstrap.requireFeatures([“Connect”],
    ”

▪   Call the connect login dialogue
▪   function fbLogin()
    {FB.Connect.requireSession(function()
    { window.location.href = '/oauth/index/facebook'; });
    return false;}
How it’s done
Step 4

▪   Easy part is over
▪   Get to work!
▪   Take full advantage of the FB API.
▪   Pull in users friends,statuses,photos etc.
4.Demonstration.
5.Questionscomments.
Via Twitter @jewgonewild your question #FBMIA

Contenu connexe

En vedette

Welcome to the API Economy: Developing Your API Strategy
Welcome to the API Economy: Developing Your API StrategyWelcome to the API Economy: Developing Your API Strategy
Welcome to the API Economy: Developing Your API StrategyMuleSoft
 
Ten Reasons Developers Hate Your API
Ten Reasons Developers Hate Your APITen Reasons Developers Hate Your API
Ten Reasons Developers Hate Your APIJohn Musser
 
GAFAnomics: Using APIs to gain unfair competitive advantage in the network ec...
GAFAnomics: Using APIs to gain unfair competitive advantage in the network ec...GAFAnomics: Using APIs to gain unfair competitive advantage in the network ec...
GAFAnomics: Using APIs to gain unfair competitive advantage in the network ec...Fabernovel
 
Darwin's Finches, 20th Century Business, and APIs
Darwin's Finches, 20th Century Business, and APIsDarwin's Finches, 20th Century Business, and APIs
Darwin's Finches, 20th Century Business, and APIsSam Ramji
 
6 Reasons Why APIs Are Reshaping Your Business
6 Reasons Why APIs Are Reshaping Your Business6 Reasons Why APIs Are Reshaping Your Business
6 Reasons Why APIs Are Reshaping Your BusinessFabernovel
 
API Business Models
API Business ModelsAPI Business Models
API Business ModelsJohn Musser
 
Design Beautiful REST + JSON APIs
Design Beautiful REST + JSON APIsDesign Beautiful REST + JSON APIs
Design Beautiful REST + JSON APIsStormpath
 

En vedette (8)

Welcome to the API Economy: Developing Your API Strategy
Welcome to the API Economy: Developing Your API StrategyWelcome to the API Economy: Developing Your API Strategy
Welcome to the API Economy: Developing Your API Strategy
 
Ten Reasons Developers Hate Your API
Ten Reasons Developers Hate Your APITen Reasons Developers Hate Your API
Ten Reasons Developers Hate Your API
 
GAFAnomics: Using APIs to gain unfair competitive advantage in the network ec...
GAFAnomics: Using APIs to gain unfair competitive advantage in the network ec...GAFAnomics: Using APIs to gain unfair competitive advantage in the network ec...
GAFAnomics: Using APIs to gain unfair competitive advantage in the network ec...
 
Darwin's Finches, 20th Century Business, and APIs
Darwin's Finches, 20th Century Business, and APIsDarwin's Finches, 20th Century Business, and APIs
Darwin's Finches, 20th Century Business, and APIs
 
6 Reasons Why APIs Are Reshaping Your Business
6 Reasons Why APIs Are Reshaping Your Business6 Reasons Why APIs Are Reshaping Your Business
6 Reasons Why APIs Are Reshaping Your Business
 
API Business Models
API Business ModelsAPI Business Models
API Business Models
 
RESTful API Design, Second Edition
RESTful API Design, Second EditionRESTful API Design, Second Edition
RESTful API Design, Second Edition
 
Design Beautiful REST + JSON APIs
Design Beautiful REST + JSON APIsDesign Beautiful REST + JSON APIs
Design Beautiful REST + JSON APIs
 

Make your site more social with Facebook Connect

  • 1.
  • 2.
  • 3. FB Connect in under 15 Make your site social in 15 minutes or less ;-) Emmanuel Pozo Twitter @Jewgonewild Co Founder at Pikchur.com 05.30.2009
  • 4. I can haz Agenda? 1 Intro and Stats 2 What is FB Connect 3 How it’s done 4 Demo 5 Thoughts, Questions
  • 6. Intro and Stats We don’t like this!
  • 8. Intro and Stats FB Connect Usage Stats ▪ Released on December 4th 2008 ▪ 1 million + users and growing ▪ Average large connect site has 2,500 - 8,000 users ▪ Few applications with tens of thousands & iPhoto is the only app with hundreds of thousands of users ▪ FB Connect is the leading identity platform
  • 10. What is FB Connect? FB Connect.. ha? ▪ Single sign on service ▪ Seamlessly connect user’s Facebook account to your site ▪ Keeps the experience social ▪ Enables easy sharing experience
  • 11. What is FB Connect? Interaction.
  • 12. What is FB Connect? Typical web view.
  • 14. How it’s done Step 1 ▪ Download API wrapper classes ▪ Create an app (http://www.facebook.com/developers/createapp.php) ▪ Go to Connect tab & set Connect URL ▪ Base Domain (optional for subdomain access) ▪ Grab your app’s API key. You’ll need it
  • 15. How it’s done Step 2 ▪ Create cross domain communication channel file. ▪ xd_receiver.htm with the following JS ▪ Place it in your apps root or wherever you want to serve the connect pages.
  • 16. How it’s done Step 3 ▪ Initialize FB connect libraries via JS ▪ <script type=”texgfjdhgjgdfgggggggggggggggggggggggggggg ▪ <script type=”text/ javascript”>FB.Bootstrap.requireFeatures([“Connect”], ” ▪ Call the connect login dialogue ▪ function fbLogin() {FB.Connect.requireSession(function() { window.location.href = '/oauth/index/facebook'; }); return false;}
  • 17. How it’s done Step 4 ▪ Easy part is over ▪ Get to work! ▪ Take full advantage of the FB API. ▪ Pull in users friends,statuses,photos etc.