SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Similar a DevCon 2010 - Facebook Apps development for ASP.NET devs

Facebook api
Facebook api Facebook api
Facebook api snipermkd
 
Facebook API
Facebook APIFacebook API
Facebook APIsnipermkd
 
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 2011Iskandar Najmuddin
 
Interactive with-facebook
Interactive with-facebookInteractive with-facebook
Interactive with-facebookTien Nguyen
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platformVenkatesh Narayanan
 
Php day 2011 - Interactive-with-facebook
Php day 2011 - Interactive-with-facebookPhp day 2011 - Interactive-with-facebook
Php day 2011 - Interactive-with-facebookQuang Anh Le
 
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 studentsSkyingBlogger
 
Facebook 3rd Party Api
Facebook 3rd Party ApiFacebook 3rd Party Api
Facebook 3rd Party ApiYoss Cohen
 
Leveraging Rails to Build Facebook Apps
Leveraging Rails to Build Facebook AppsLeveraging Rails to Build Facebook Apps
Leveraging Rails to Build Facebook AppsDavid Keener
 
OAuth Introduction
OAuth IntroductionOAuth Introduction
OAuth Introductionh_marvin
 
Facebook plateform architecture presentation
Facebook plateform architecture   presentationFacebook plateform architecture   presentation
Facebook plateform architecture presentationInam Soomro
 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docxehathis
 
Facebook Connect Integration
Facebook Connect IntegrationFacebook Connect Integration
Facebook Connect Integrationmujahidslideshare
 
Facebook Connect Tutorial
Facebook Connect TutorialFacebook Connect Tutorial
Facebook Connect TutorialPrateek Dayal
 

Similar a 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
 

Último

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 FresherRemote DBA Services
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
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?Igalia
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
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 Processorsdebabhi2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
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 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
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...apidays
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Último (20)

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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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?
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

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