SlideShare ist ein Scribd-Unternehmen logo
1 von 12
DevCon 2010
Hyderabad │ 24th
October
Facebook apps development for web devs
Krishna Chaitanya T │ Future Web Research Lab, SETLabs, Infosys
 Overview of Facebook platform & the social web
 The Facebook Graph API
 Getting started with Facebook apps
 How Facebook Authentication works (C# demo)
 JavaScript SDK & Social plugins
S E S S I O N A G E N D A
DevCon 2010
Hyderabad │ 24th
October
Facebook.comDevCon 2010
Hyderabad │ 24th
October
 More than 500 million active users, 150 million mobile users
 Over 900 million objects that people interact with (pages, groups, events)
 More than 1 million developers & 555,000 apps … More
 Social Graph – A graph that connects people & things they care about
 FB Platform – Set of APIs & tools to integrate with social graph. Available for
websites, apps on Facebook, mobile apps
 Personalized experiences. Ex: Docs.com
OVERVIEWDevCon 2010
Hyderabad │ 24th
October
 Provides consistent view of FB social graph
 Every object in the social graph has unique ID
 Query: https://graph.facebook.com/[ID or UserName]
 All objects are accessible similarly & all responses are JSON objects
 Object for MUGH group: http://graph.facebook.com/themugh
 Picture of Bill Gates: http://graph.facebook.com/billgates/picture
 Connections: Relationships b/w objects(requires authentication)
 Query: https://graph.facebook.com/ID/CONNECTION_TYPE
 Friends: https://graph.facebook.com/me/friends?limit=15
 Books: https://graph.facebook.com/me/books
 People attending DevCon: https://graph.facebook.com/152359924805795/attending
Facebook Graph APIDevCon 2010
Hyderabad │ 24th
October
 Register your facebook app
 Specify canvas page & canvas URL (can use http://localhost during dev)
 The App Id is “client_Id” & App Secret is “client_secret”. We’ll use this later.

 Choose “Canvas Type” as “Iframe” or “FBML” and save changes.
 Host your app at canvas URL and test. (The demos here use “Iframe”)
Getting started with FB appsDevCon 2010
Hyderabad │ 24th
October
 FB uses oAuth 2.0 protocol for authentication.
 Authorized requests to Facebook require access token . Here are the steps to make
authorized requests:
1. Redirect to
https://graph.facebook.com/oauth/authorize? client_id=...&
redirect_uri=http://www.example.com/oauth_redirect
2. User authorizes-> FB redirects to “redirect_uri” with the parameter “code”
3. Extract the “code” & redirect to:
https://graph.facebook.com/oauth/access_token? client_id=...&
redirect_uri=http://www.example.com/oauth_redirect& client_secret=...& code=...
4. From the above request, Facebook returns “access_token”. Use this to make
authorized requests like :
https://graph.facebook.com/me?access_token=...
Facebook AuthenticationDevCon 2010
Hyderabad │ 24th
October
DEMO: Making Facebook oAuth handshake using C#
DevCon 2010
Hyderabad │ 24th
October
 Simplifies authentication process without worrying about oAuth handshake.
Enables all features of Graph API via JavaScript
 The SDK is open source and is available on GitHub.
 API is initialized like this:
FB.init({appId: 'your app id', status: true, cookie: true, xfbml: true});
 Subscribe to events, trigger UI interactions, make calls to Graph API.
 Social plugins: Embeddable social features to integrate into your site, single line of
code.
 Extensions of facebook, ensure data is not shared hosted sites
 Login button, Like box, Like button, Comments, Activity feed, Recommendations,
Live stream & FacePile.
JavaScript SDK & social pluginsDevCon 2010
Hyderabad │ 24th
October
DEMO: Creating Facebook app with JavaScript SDK & jQuery
DevCon 2010
Hyderabad │ 24th
October
 Facebook Docs
 http://developers.facebook.com/docs/
 Facebook C# SDK
 http://github.com/facebook/csharp-sdk
 Facebook JavaScript SDK
 http://developers.facebook.com/docs/reference/javascript/
RESOURCES
DevCon 2010
Hyderabad │ 24th
October
Twitter: @novogeek │ Blog: www.novogeek.com
DevCon 2010
Hyderabad │ 24th
October
Demo Facebook app: http://apps.facebook.com/devcon-app

Weitere ähnliche Inhalte

Ähnlich wie DevCon 2010 - Facebook Apps development for ASP.NET devs

Facebook API
Facebook APIFacebook API
Facebook API
snipermkd
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platform
Venkatesh Narayanan
 
Php day 2011 - Interactive-with-facebook
Php day 2011 - Interactive-with-facebookPhp day 2011 - Interactive-with-facebook
Php day 2011 - Interactive-with-facebook
Quang Anh Le
 
OAuth Introduction
OAuth IntroductionOAuth Introduction
OAuth Introduction
h_marvin
 
Facebook plateform architecture presentation
Facebook plateform architecture   presentationFacebook plateform architecture   presentation
Facebook plateform architecture presentation
Inam Soomro
 

Ähnlich wie DevCon 2010 - Facebook Apps development for ASP.NET devs (20)

Facebook api
Facebook api Facebook api
Facebook api
 
Facebook API
Facebook APIFacebook API
Facebook API
 
What's New on the Facebook Platform, July 2011
What's New on the Facebook Platform, July 2011What's New on the Facebook Platform, July 2011
What's New on the Facebook Platform, July 2011
 
Interactive with-facebook
Interactive with-facebookInteractive with-facebook
Interactive with-facebook
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platform
 
Php day 2011 - Interactive-with-facebook
Php day 2011 - Interactive-with-facebookPhp day 2011 - Interactive-with-facebook
Php day 2011 - Interactive-with-facebook
 
Download PowerPoint Project on social programming for engineering students
Download PowerPoint Project on social programming for engineering studentsDownload PowerPoint Project on social programming for engineering students
Download PowerPoint Project on social programming for engineering students
 
Kt 15 07-2013
Kt 15 07-2013Kt 15 07-2013
Kt 15 07-2013
 
Facebook 3rd Party Api
Facebook 3rd Party ApiFacebook 3rd Party Api
Facebook 3rd Party Api
 
Leveraging Rails to Build Facebook Apps
Leveraging Rails to Build Facebook AppsLeveraging Rails to Build Facebook Apps
Leveraging Rails to Build Facebook Apps
 
OAuth Introduction
OAuth IntroductionOAuth Introduction
OAuth Introduction
 
Facebook plateform architecture presentation
Facebook plateform architecture   presentationFacebook plateform architecture   presentation
Facebook plateform architecture presentation
 
Facebook Platform
Facebook PlatformFacebook Platform
Facebook Platform
 
Facebook Connect
Facebook ConnectFacebook Connect
Facebook Connect
 
Facebook Apps
Facebook AppsFacebook Apps
Facebook Apps
 
Facebook apps
Facebook appsFacebook apps
Facebook apps
 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docx
 
Introducing Facebook
Introducing FacebookIntroducing Facebook
Introducing Facebook
 
Facebook Connect Integration
Facebook Connect IntegrationFacebook Connect Integration
Facebook Connect Integration
 
Facebook Connect Tutorial
Facebook Connect TutorialFacebook Connect Tutorial
Facebook Connect Tutorial
 

Kürzlich hochgeladen

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

DevCon 2010 - Facebook Apps development for ASP.NET devs

  • 1. DevCon 2010 Hyderabad │ 24th October Facebook apps development for web devs Krishna Chaitanya T │ Future Web Research Lab, SETLabs, Infosys
  • 2.  Overview of Facebook platform & the social web  The Facebook Graph API  Getting started with Facebook apps  How Facebook Authentication works (C# demo)  JavaScript SDK & Social plugins S E S S I O N A G E N D A DevCon 2010 Hyderabad │ 24th October
  • 4.  More than 500 million active users, 150 million mobile users  Over 900 million objects that people interact with (pages, groups, events)  More than 1 million developers & 555,000 apps … More  Social Graph – A graph that connects people & things they care about  FB Platform – Set of APIs & tools to integrate with social graph. Available for websites, apps on Facebook, mobile apps  Personalized experiences. Ex: Docs.com OVERVIEWDevCon 2010 Hyderabad │ 24th October
  • 5.  Provides consistent view of FB social graph  Every object in the social graph has unique ID  Query: https://graph.facebook.com/[ID or UserName]  All objects are accessible similarly & all responses are JSON objects  Object for MUGH group: http://graph.facebook.com/themugh  Picture of Bill Gates: http://graph.facebook.com/billgates/picture  Connections: Relationships b/w objects(requires authentication)  Query: https://graph.facebook.com/ID/CONNECTION_TYPE  Friends: https://graph.facebook.com/me/friends?limit=15  Books: https://graph.facebook.com/me/books  People attending DevCon: https://graph.facebook.com/152359924805795/attending Facebook Graph APIDevCon 2010 Hyderabad │ 24th October
  • 6.  Register your facebook app  Specify canvas page & canvas URL (can use http://localhost during dev)  The App Id is “client_Id” & App Secret is “client_secret”. We’ll use this later.   Choose “Canvas Type” as “Iframe” or “FBML” and save changes.  Host your app at canvas URL and test. (The demos here use “Iframe”) Getting started with FB appsDevCon 2010 Hyderabad │ 24th October
  • 7.  FB uses oAuth 2.0 protocol for authentication.  Authorized requests to Facebook require access token . Here are the steps to make authorized requests: 1. Redirect to https://graph.facebook.com/oauth/authorize? client_id=...& redirect_uri=http://www.example.com/oauth_redirect 2. User authorizes-> FB redirects to “redirect_uri” with the parameter “code” 3. Extract the “code” & redirect to: https://graph.facebook.com/oauth/access_token? client_id=...& redirect_uri=http://www.example.com/oauth_redirect& client_secret=...& code=... 4. From the above request, Facebook returns “access_token”. Use this to make authorized requests like : https://graph.facebook.com/me?access_token=... Facebook AuthenticationDevCon 2010 Hyderabad │ 24th October
  • 8. DEMO: Making Facebook oAuth handshake using C# DevCon 2010 Hyderabad │ 24th October
  • 9.  Simplifies authentication process without worrying about oAuth handshake. Enables all features of Graph API via JavaScript  The SDK is open source and is available on GitHub.  API is initialized like this: FB.init({appId: 'your app id', status: true, cookie: true, xfbml: true});  Subscribe to events, trigger UI interactions, make calls to Graph API.  Social plugins: Embeddable social features to integrate into your site, single line of code.  Extensions of facebook, ensure data is not shared hosted sites  Login button, Like box, Like button, Comments, Activity feed, Recommendations, Live stream & FacePile. JavaScript SDK & social pluginsDevCon 2010 Hyderabad │ 24th October
  • 10. DEMO: Creating Facebook app with JavaScript SDK & jQuery DevCon 2010 Hyderabad │ 24th October
  • 11.  Facebook Docs  http://developers.facebook.com/docs/  Facebook C# SDK  http://github.com/facebook/csharp-sdk  Facebook JavaScript SDK  http://developers.facebook.com/docs/reference/javascript/ RESOURCES DevCon 2010 Hyderabad │ 24th October
  • 12. Twitter: @novogeek │ Blog: www.novogeek.com DevCon 2010 Hyderabad │ 24th October Demo Facebook app: http://apps.facebook.com/devcon-app