SlideShare uma empresa Scribd logo
1 de 20
Integrating with Facebook
using Mule ESB Facebook
Connector
Prepared By: Rupesh Sinha
Overview
 What is Facebook?
 Versions and Assumptions
 Configuring Facebook
 Configuring Facebook Connector
 Mule Flow for Facebook Authentication
 Mule Flow for retrieving logged in user details
 Mule Flow for publishing message in Facebook
 Conclusion
What is Facebook?
− Facebook is a social networking website launched in
February 2004
− A user must register before they can use Facebook
− After registering users can create a user profile, add other
users as friends, exchange messages, post status updates
and photos, share videos and receive notifications when
others update their profiles
− As of February 2015 Facebook reached a market
capitalization of $212 Billion
− Facebook is currently the most famous social networking
site
Versions and Assumptions
• In this presentation, we are using
− Facebook Connector 2.3.4
− Any point Studio
− Mule ESB Server 3.5.2
• To use this application in your project, you will need a
Facebook account for testing
• You will need to create a new Facebook app under Facebook
developer apps to be able to communicate with your Facebook
account from Mule ESB application
• We will be using OAuth2 authentication to connect to Facebook
using Mule ESB Facebook Connector
Configuring Facebook
 Go to https://developers.facebook.com/
 Click on My Apps
 Click on Create a New App button and you should be given a screen as
shown below
 Add a unique display name, namespace and select a category.
 Click on Create App Id. You should get a screen similar to one shown below
 Click on Show button and make a note of the App ID and App Secret. The
App ID and App Secret will be used later in Mule Facebook Connector
configuration
Configuring Facebook Connector
 Create a new Mule Application
 Click on Global Elements tab in your main flow
 Click on Create Button
 Select Facebook under Connector Configuration group
 Add your Facebook App ID value to Consumer Key text box
 Add your Facebook Secret Key value to Consumer Secret text box
 Leave the scope text box empty. The default value for scope is
“email,read_stream,publish_stream” which covers most of the access
permissions
 Click on Oauth tab and specify domain, local port and remote port
values.
 A screen shot and sample XML configuration is shown in the next slide
Mule Flow for Facebook Authentication
 Configure a flow as shown in the below picture
 The XML configuration for this flow is given in the next slide
 If the app authorizes to Facebook app successfully, the connector returns two
flow variables to Mule ESB flow which are “_oauthVerifier” and
“OAuthAccessTokenId”
 Using Choice router, we are checking weather the flow received an
“OAuthAccessTokenId” or not and based on the response we are determining
the success or failure of the Facebook authorization
 Deploy your app
 Hit the following URL on the browser
http://localhost:1111/facebookauthorize
 Facebook will ask you to authorize your new app to connect to Facebook as
shown below. Below screen will be prompted only first time when you run the
app. Latest execution of your app will not prompt for approval.
 Click on Okay button and you should see a message on the browser as
“Facebook Authorization Successful”
 In order to publish or post a message on Facebook, you would need to submit
the app for review and request for “publish_stream” access on developer apps.
Mule Flow for retrieving logged in user
details
 Let’s extend the previous authorize flow and use the authentication
token to retrieve the logged in user details from Facebook.
 Change your Mule flow as per the given flow picture
 The XML configuration for the new flow will be as shown below
 In this flow, we have used another operation on Facebook connector to
retrieve the logged in user details and print them on the browser using Object
to JSON transformer
 Deploy your app
 Hit the following URL on the browser
http://localhost:1111/facebookauthorize
 You should now see the logged in user details printed on your browser in JSON
format
Mule Flow for publishing message in
Facebook
 Let’s extend the previous authorize flow and use the authentication
token and user details to publish a message on user’s wall.
 Change your Mule flow as per the given flow picture
 The XML configuration for the new flow is given in the next slide
 Deploy your app
 Hit the following URL on the browser
http://localhost:1111/facebookauthorize
 You should now see a message on your browser as “Message posted on your
wall.”
 Check your Facebook wall and you should see a message published on your wall
as “This is a greetings from Mule ESB app”
 Please note that Facebook does not allow spam. Therefore, if you try posting
same message twice in a short period of time, an exception will be thrown.
Conclusion
• Mule ESB Facebook connector provides an easy way to connect
to Facebook using Facebook OAuth2 authentication and allows
performing several operations
• The latest Facebook connector is simpler to use compared to
the previous version of Facebook connectors
• Facebook Connector is available for Mule ESB community
edition
Thanks for watching

Mais conteúdo relacionado

Mais procurados

Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standaloneAnirban Sen Chowdhary
 
Getting anypoint studios all versions
Getting anypoint studios all versionsGetting anypoint studios all versions
Getting anypoint studios all versionsAnirban Sen Chowdhary
 
Integrate to retrieve data microsoft azure
Integrate to retrieve data microsoft azureIntegrate to retrieve data microsoft azure
Integrate to retrieve data microsoft azureSon Nguyen
 
Mule with salesforce push topic notification copy
Mule with salesforce push topic notification   copyMule with salesforce push topic notification   copy
Mule with salesforce push topic notification copySanjeet Pandey
 
Deploying and Running in Mule
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in MuleKhasim Saheb
 
Mule management console installation with Tomcat
Mule management console installation with TomcatMule management console installation with Tomcat
Mule management console installation with TomcatSudha Ch
 
Expose web service
Expose web serviceExpose web service
Expose web serviceSon Nguyen
 
My journey and learnings using mule esb part 1
My journey and learnings using mule esb part 1My journey and learnings using mule esb part 1
My journey and learnings using mule esb part 1Alex Fernandez
 
Velocity in Mule
Velocity in MuleVelocity in Mule
Velocity in MuleMohammed246
 
Idempotent filter in Mule
Idempotent filter in MuleIdempotent filter in Mule
Idempotent filter in MuleF K
 

Mais procurados (18)

Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Mule with velocity
Mule with velocityMule with velocity
Mule with velocity
 
Example mule
Example muleExample mule
Example mule
 
Getting anypoint studios all versions
Getting anypoint studios all versionsGetting anypoint studios all versions
Getting anypoint studios all versions
 
Integrate to retrieve data microsoft azure
Integrate to retrieve data microsoft azureIntegrate to retrieve data microsoft azure
Integrate to retrieve data microsoft azure
 
Mule with salesforce push topic notification copy
Mule with salesforce push topic notification   copyMule with salesforce push topic notification   copy
Mule with salesforce push topic notification copy
 
Deploying and Running in Mule
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in Mule
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Using ajax in mule
Using ajax in muleUsing ajax in mule
Using ajax in mule
 
Mule management console installation with Tomcat
Mule management console installation with TomcatMule management console installation with Tomcat
Mule management console installation with Tomcat
 
Expose web service
Expose web serviceExpose web service
Expose web service
 
My journey and learnings using mule esb part 1
My journey and learnings using mule esb part 1My journey and learnings using mule esb part 1
My journey and learnings using mule esb part 1
 
Velocity in Mule
Velocity in MuleVelocity in Mule
Velocity in Mule
 
Installing mule
Installing muleInstalling mule
Installing mule
 
Https service mule
Https service muleHttps service mule
Https service mule
 
Idempotent filter in Mule
Idempotent filter in MuleIdempotent filter in Mule
Idempotent filter in Mule
 
Mule velocity
Mule velocityMule velocity
Mule velocity
 
Sending mail with attachment
Sending mail with attachmentSending mail with attachment
Sending mail with attachment
 

Destaque

MuleSoft ESB - CSV File to Database
MuleSoft ESB - CSV File to DatabaseMuleSoft ESB - CSV File to Database
MuleSoft ESB - CSV File to Databaseakashdprajapati
 
Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Srikanth N
 
UX + Agile: A brief overview on integrating user experience practices with Ag...
UX + Agile: A brief overview on integrating user experience practices with Ag...UX + Agile: A brief overview on integrating user experience practices with Ag...
UX + Agile: A brief overview on integrating user experience practices with Ag...Juliana Dorneles
 
Designing Frameworks For Interaction and User Experience
Designing Frameworks For Interaction and User Experience Designing Frameworks For Interaction and User Experience
Designing Frameworks For Interaction and User Experience Joe Lamantia
 
Mule deploying a cloud hub application
Mule deploying a cloud hub applicationMule deploying a cloud hub application
Mule deploying a cloud hub applicationD.Rajesh Kumar
 
Mule routing and filters
Mule routing and filtersMule routing and filters
Mule routing and filtersGandham38
 
Generating Documentation for Mule ESB Application
Generating Documentation for Mule ESB ApplicationGenerating Documentation for Mule ESB Application
Generating Documentation for Mule ESB ApplicationRupesh Sinha
 
Mule esb How to convert from CSV to Json in 5 minutes
Mule esb How to convert from CSV to Json in 5 minutesMule esb How to convert from CSV to Json in 5 minutes
Mule esb How to convert from CSV to Json in 5 minutesGennaro Spagnoli
 
CamelOne 2012 - Spoilt for Choice: Which Integration Framework to use?
CamelOne 2012 - Spoilt for Choice: Which Integration Framework to use?CamelOne 2012 - Spoilt for Choice: Which Integration Framework to use?
CamelOne 2012 - Spoilt for Choice: Which Integration Framework to use?Kai Wähner
 
[Hello world 오픈세미나]소셜게임 a to z final
[Hello world 오픈세미나]소셜게임 a to z final[Hello world 오픈세미나]소셜게임 a to z final
[Hello world 오픈세미나]소셜게임 a to z finalNAVER D2
 
Future of Integration | MuleSoft
Future of Integration | MuleSoftFuture of Integration | MuleSoft
Future of Integration | MuleSoftMuleSoft
 

Destaque (20)

MuleSoft ESB - CSV File to Database
MuleSoft ESB - CSV File to DatabaseMuleSoft ESB - CSV File to Database
MuleSoft ESB - CSV File to Database
 
Mule esb examples
Mule esb examplesMule esb examples
Mule esb examples
 
Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1
 
UX + Agile: A brief overview on integrating user experience practices with Ag...
UX + Agile: A brief overview on integrating user experience practices with Ag...UX + Agile: A brief overview on integrating user experience practices with Ag...
UX + Agile: A brief overview on integrating user experience practices with Ag...
 
Designing Frameworks For Interaction and User Experience
Designing Frameworks For Interaction and User Experience Designing Frameworks For Interaction and User Experience
Designing Frameworks For Interaction and User Experience
 
Mule deploying a cloud hub application
Mule deploying a cloud hub applicationMule deploying a cloud hub application
Mule deploying a cloud hub application
 
Overview of Mule
Overview of MuleOverview of Mule
Overview of Mule
 
Mule routing and filters
Mule routing and filtersMule routing and filters
Mule routing and filters
 
Mule connectors
Mule  connectorsMule  connectors
Mule connectors
 
Generating Documentation for Mule ESB Application
Generating Documentation for Mule ESB ApplicationGenerating Documentation for Mule ESB Application
Generating Documentation for Mule ESB Application
 
Mule esb How to convert from CSV to Json in 5 minutes
Mule esb How to convert from CSV to Json in 5 minutesMule esb How to convert from CSV to Json in 5 minutes
Mule esb How to convert from CSV to Json in 5 minutes
 
Timer Interceptor in Mule
Timer Interceptor in MuleTimer Interceptor in Mule
Timer Interceptor in Mule
 
CamelOne 2012 - Spoilt for Choice: Which Integration Framework to use?
CamelOne 2012 - Spoilt for Choice: Which Integration Framework to use?CamelOne 2012 - Spoilt for Choice: Which Integration Framework to use?
CamelOne 2012 - Spoilt for Choice: Which Integration Framework to use?
 
Mule esb transformers
Mule esb transformersMule esb transformers
Mule esb transformers
 
Mule Expression language
Mule Expression languageMule Expression language
Mule Expression language
 
Mule ESB Training
Mule ESB TrainingMule ESB Training
Mule ESB Training
 
Mule with drools
Mule with droolsMule with drools
Mule with drools
 
[Hello world 오픈세미나]소셜게임 a to z final
[Hello world 오픈세미나]소셜게임 a to z final[Hello world 오픈세미나]소셜게임 a to z final
[Hello world 오픈세미나]소셜게임 a to z final
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
 
Future of Integration | MuleSoft
Future of Integration | MuleSoftFuture of Integration | MuleSoft
Future of Integration | MuleSoft
 

Semelhante a Demo on Mule ESB Facebook Connector

Integrate facebook using mule esb
Integrate facebook using mule esbIntegrate facebook using mule esb
Integrate facebook using mule esbSanjeet Pandey
 
Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked inSon Nguyen
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platformVenkatesh Narayanan
 
Integrating with LinkedIn using Mule ESB LinkedIn Connector
Integrating with LinkedIn using Mule ESB LinkedIn ConnectorIntegrating with LinkedIn using Mule ESB LinkedIn Connector
Integrating with LinkedIn using Mule ESB LinkedIn ConnectorRupesh Sinha
 
Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBRupesh Sinha
 
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 SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docxehathis
 
Facebook Feed snippet in odoo
Facebook Feed snippet in odoo Facebook Feed snippet in odoo
Facebook Feed snippet in odoo Axis Technolabs
 
Facebook Connect Tutorial
Facebook Connect TutorialFacebook Connect Tutorial
Facebook Connect TutorialPrateek Dayal
 
Facebook 3rd Party Api
Facebook 3rd Party ApiFacebook 3rd Party Api
Facebook 3rd Party ApiYoss Cohen
 
Uk Nuke Facebook Connect Authentication For Dot Net Nuke
Uk Nuke Facebook Connect Authentication For Dot Net NukeUk Nuke Facebook Connect Authentication For Dot Net Nuke
Uk Nuke Facebook Connect Authentication For Dot Net NukeStuart Lodge
 
UkNuke Facebook Connect Authentication For DotNetNuke 5
UkNuke Facebook Connect Authentication For DotNetNuke 5UkNuke Facebook Connect Authentication For DotNetNuke 5
UkNuke Facebook Connect Authentication For DotNetNuke 5Stuart Lodge
 

Semelhante a Demo on Mule ESB Facebook Connector (20)

Integrate facebook using mule esb
Integrate facebook using mule esbIntegrate facebook using mule esb
Integrate facebook using mule esb
 
Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked in
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platform
 
Integrating with LinkedIn using Mule ESB LinkedIn Connector
Integrating with LinkedIn using Mule ESB LinkedIn ConnectorIntegrating with LinkedIn using Mule ESB LinkedIn Connector
Integrating with LinkedIn using Mule ESB LinkedIn Connector
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESB
 
Dropbox with Mule
Dropbox with MuleDropbox with Mule
Dropbox with Mule
 
Mule Integration with Dropbox
Mule Integration with DropboxMule Integration with Dropbox
Mule Integration with Dropbox
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
Facebook_Coin
Facebook_CoinFacebook_Coin
Facebook_Coin
 
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
 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docx
 
Facebook Feed snippet in odoo
Facebook Feed snippet in odoo Facebook Feed snippet in odoo
Facebook Feed snippet in odoo
 
Facebook Connect Tutorial
Facebook Connect TutorialFacebook Connect Tutorial
Facebook Connect Tutorial
 
Facebook 3rd Party Api
Facebook 3rd Party ApiFacebook 3rd Party Api
Facebook 3rd Party Api
 
Uk Nuke Facebook Connect Authentication For Dot Net Nuke
Uk Nuke Facebook Connect Authentication For Dot Net NukeUk Nuke Facebook Connect Authentication For Dot Net Nuke
Uk Nuke Facebook Connect Authentication For Dot Net Nuke
 
UkNuke Facebook Connect Authentication For DotNetNuke 5
UkNuke Facebook Connect Authentication For DotNetNuke 5UkNuke Facebook Connect Authentication For DotNetNuke 5
UkNuke Facebook Connect Authentication For DotNetNuke 5
 
Facebook Connect
Facebook ConnectFacebook Connect
Facebook Connect
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
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
 
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 CVKhem
 
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
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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...Martijn de Jong
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Último (20)

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
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
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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
 
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
 
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...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Demo on Mule ESB Facebook Connector

  • 1. Integrating with Facebook using Mule ESB Facebook Connector Prepared By: Rupesh Sinha
  • 2. Overview  What is Facebook?  Versions and Assumptions  Configuring Facebook  Configuring Facebook Connector  Mule Flow for Facebook Authentication  Mule Flow for retrieving logged in user details  Mule Flow for publishing message in Facebook  Conclusion
  • 3. What is Facebook? − Facebook is a social networking website launched in February 2004 − A user must register before they can use Facebook − After registering users can create a user profile, add other users as friends, exchange messages, post status updates and photos, share videos and receive notifications when others update their profiles − As of February 2015 Facebook reached a market capitalization of $212 Billion − Facebook is currently the most famous social networking site
  • 4. Versions and Assumptions • In this presentation, we are using − Facebook Connector 2.3.4 − Any point Studio − Mule ESB Server 3.5.2 • To use this application in your project, you will need a Facebook account for testing • You will need to create a new Facebook app under Facebook developer apps to be able to communicate with your Facebook account from Mule ESB application • We will be using OAuth2 authentication to connect to Facebook using Mule ESB Facebook Connector
  • 5. Configuring Facebook  Go to https://developers.facebook.com/  Click on My Apps  Click on Create a New App button and you should be given a screen as shown below
  • 6.  Add a unique display name, namespace and select a category.  Click on Create App Id. You should get a screen similar to one shown below  Click on Show button and make a note of the App ID and App Secret. The App ID and App Secret will be used later in Mule Facebook Connector configuration
  • 7. Configuring Facebook Connector  Create a new Mule Application  Click on Global Elements tab in your main flow  Click on Create Button  Select Facebook under Connector Configuration group  Add your Facebook App ID value to Consumer Key text box  Add your Facebook Secret Key value to Consumer Secret text box  Leave the scope text box empty. The default value for scope is “email,read_stream,publish_stream” which covers most of the access permissions  Click on Oauth tab and specify domain, local port and remote port values.  A screen shot and sample XML configuration is shown in the next slide
  • 8.
  • 9. Mule Flow for Facebook Authentication  Configure a flow as shown in the below picture  The XML configuration for this flow is given in the next slide
  • 10.  If the app authorizes to Facebook app successfully, the connector returns two flow variables to Mule ESB flow which are “_oauthVerifier” and “OAuthAccessTokenId”  Using Choice router, we are checking weather the flow received an “OAuthAccessTokenId” or not and based on the response we are determining the success or failure of the Facebook authorization
  • 11.  Deploy your app  Hit the following URL on the browser http://localhost:1111/facebookauthorize  Facebook will ask you to authorize your new app to connect to Facebook as shown below. Below screen will be prompted only first time when you run the app. Latest execution of your app will not prompt for approval.
  • 12.  Click on Okay button and you should see a message on the browser as “Facebook Authorization Successful”  In order to publish or post a message on Facebook, you would need to submit the app for review and request for “publish_stream” access on developer apps.
  • 13. Mule Flow for retrieving logged in user details  Let’s extend the previous authorize flow and use the authentication token to retrieve the logged in user details from Facebook.  Change your Mule flow as per the given flow picture
  • 14.  The XML configuration for the new flow will be as shown below
  • 15.  In this flow, we have used another operation on Facebook connector to retrieve the logged in user details and print them on the browser using Object to JSON transformer  Deploy your app  Hit the following URL on the browser http://localhost:1111/facebookauthorize  You should now see the logged in user details printed on your browser in JSON format
  • 16. Mule Flow for publishing message in Facebook  Let’s extend the previous authorize flow and use the authentication token and user details to publish a message on user’s wall.  Change your Mule flow as per the given flow picture  The XML configuration for the new flow is given in the next slide
  • 17.
  • 18.  Deploy your app  Hit the following URL on the browser http://localhost:1111/facebookauthorize  You should now see a message on your browser as “Message posted on your wall.”  Check your Facebook wall and you should see a message published on your wall as “This is a greetings from Mule ESB app”  Please note that Facebook does not allow spam. Therefore, if you try posting same message twice in a short period of time, an exception will be thrown.
  • 19. Conclusion • Mule ESB Facebook connector provides an easy way to connect to Facebook using Facebook OAuth2 authentication and allows performing several operations • The latest Facebook connector is simpler to use compared to the previous version of Facebook connectors • Facebook Connector is available for Mule ESB community edition