SlideShare ist ein Scribd-Unternehmen logo
1 von 20
www.sanjeetpandey.com
www.sanjeetpandey.com
Prepared by – Sanjeet Pandey
Integrate Facebook using Mule ESB
www.sanjeetpandey.com
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
www.sanjeetpandey.com
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
www.sanjeetpandey.com
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
www.sanjeetpandey.com
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
www.sanjeetpandey.com
 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
www.sanjeetpandey.com
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
www.sanjeetpandey.com
www.sanjeetpandey.com
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
www.sanjeetpandey.com
 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
www.sanjeetpandey.com
 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.
www.sanjeetpandey.com
 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.
www.sanjeetpandey.com
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
www.sanjeetpandey.com
 The XML configuration for the new flow will be as shown below
www.sanjeetpandey.com
 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
www.sanjeetpandey.com
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
www.sanjeetpandey.com
www.sanjeetpandey.com
 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.
www.sanjeetpandey.com
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
www.sanjeetpandey.com 20

Weitere ähnliche Inhalte

Was ist angesagt?

Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked inSon Nguyen
 
Integration with sales force
Integration with sales forceIntegration with sales force
Integration with sales forceSon Nguyen
 
Integration with microsoft share point
Integration with microsoft share pointIntegration with microsoft share point
Integration with microsoft share pointSon Nguyen
 
Mulesoft Salesforce Connector - OAuth 2.0 JWT Bearer
Mulesoft Salesforce Connector -  OAuth 2.0 JWT BearerMulesoft Salesforce Connector -  OAuth 2.0 JWT Bearer
Mulesoft Salesforce Connector - OAuth 2.0 JWT BearerVince Soliza
 
Mule integration with linkedin
Mule integration with linkedinMule integration with linkedin
Mule integration with linkedinKhasim Saheb
 
Connecting to salesforce and using database in mule
Connecting to salesforce and using database in muleConnecting to salesforce and using database in mule
Connecting to salesforce and using database in muleRaviShankar Mishra
 
Flowsinmule 160517130818
Flowsinmule 160517130818Flowsinmule 160517130818
Flowsinmule 160517130818ppts123456
 
Mule organization
Mule organizationMule organization
Mule organizationSon Nguyen
 
Mule add contacts into salesforce
Mule add contacts into salesforceMule add contacts into salesforce
Mule add contacts into salesforceD.Rajesh Kumar
 
Query Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESBQuery Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESBSanjeet Pandey
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with muleF K
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlightshimajareddys
 
Create folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbCreate folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbSanjeet Pandey
 

Was ist angesagt? (17)

Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked in
 
Integration with sales force
Integration with sales forceIntegration with sales force
Integration with sales force
 
Manage and consume the api
Manage and consume the apiManage and consume the api
Manage and consume the api
 
Integration with microsoft share point
Integration with microsoft share pointIntegration with microsoft share point
Integration with microsoft share point
 
Mulesoft Salesforce Connector - OAuth 2.0 JWT Bearer
Mulesoft Salesforce Connector -  OAuth 2.0 JWT BearerMulesoft Salesforce Connector -  OAuth 2.0 JWT Bearer
Mulesoft Salesforce Connector - OAuth 2.0 JWT Bearer
 
Mule integration with linkedin
Mule integration with linkedinMule integration with linkedin
Mule integration with linkedin
 
Connecting to salesforce and using database in mule
Connecting to salesforce and using database in muleConnecting to salesforce and using database in mule
Connecting to salesforce and using database in mule
 
Mule esb stripe
Mule esb stripeMule esb stripe
Mule esb stripe
 
Flowsinmule 160517130818
Flowsinmule 160517130818Flowsinmule 160517130818
Flowsinmule 160517130818
 
Mule organization
Mule organizationMule organization
Mule organization
 
Mule add contacts into salesforce
Mule add contacts into salesforceMule add contacts into salesforce
Mule add contacts into salesforce
 
Anypoint b2 b
Anypoint b2 bAnypoint b2 b
Anypoint b2 b
 
Query Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESBQuery Operation in Microsoft SharePoint using Mule ESB
Query Operation in Microsoft SharePoint using Mule ESB
 
Automatic documentation with mule
Automatic documentation with muleAutomatic documentation with mule
Automatic documentation with mule
 
Rest security with oauth 2.0
Rest security with oauth 2.0Rest security with oauth 2.0
Rest security with oauth 2.0
 
Anypoint platform highlights
Anypoint platform highlightsAnypoint platform highlights
Anypoint platform highlights
 
Create folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esbCreate folder in microsoft office 365 share point using mule esb
Create folder in microsoft office 365 share point using mule esb
 

Andere mochten auch

Demo on Mule ESB Facebook Connector
Demo on Mule ESB Facebook ConnectorDemo on Mule ESB Facebook Connector
Demo on Mule ESB Facebook ConnectorRupesh Sinha
 
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
 
LinkedIn 101 for Government
LinkedIn 101 for GovernmentLinkedIn 101 for Government
LinkedIn 101 for Governmentcanada30
 
Create Account in Salesforce using Mule ESB
Create Account in Salesforce using Mule ESBCreate Account in Salesforce using Mule ESB
Create Account in Salesforce using Mule ESBSanjeet Pandey
 
Mule MMC Integration with LDAP
Mule MMC Integration with LDAPMule MMC Integration with LDAP
Mule MMC Integration with LDAPSanjeet Pandey
 
Integration with Salesforce using Mule ESB
Integration with Salesforce using Mule ESBIntegration with Salesforce using Mule ESB
Integration with Salesforce using Mule ESBSanjeet Pandey
 
Mule api gateway overview
Mule api gateway overviewMule api gateway overview
Mule api gateway overviewSanjeet Pandey
 
Snapchat Slideshare Company Presentation
Snapchat Slideshare Company PresentationSnapchat Slideshare Company Presentation
Snapchat Slideshare Company Presentationlilyhash
 
Snapchat Presentation - Billy Irwin
Snapchat Presentation - Billy IrwinSnapchat Presentation - Billy Irwin
Snapchat Presentation - Billy IrwinWilliam Irwin
 
Introduction to cooperative auditing
Introduction to cooperative auditingIntroduction to cooperative auditing
Introduction to cooperative auditingefferson ramirez
 
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
 
The advantages and disadvantages from using facebook
The advantages and disadvantages from using facebookThe advantages and disadvantages from using facebook
The advantages and disadvantages from using facebookEleazar NoviAndono
 
Enterprise service bus(esb)
Enterprise service bus(esb)Enterprise service bus(esb)
Enterprise service bus(esb)prksh89
 
Facebook Presentation
Facebook PresentationFacebook Presentation
Facebook Presentationahazley
 

Andere mochten auch (20)

Demo on Mule ESB Facebook Connector
Demo on Mule ESB Facebook ConnectorDemo on Mule ESB Facebook Connector
Demo on Mule ESB Facebook Connector
 
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
 
LinkedIn 101 for Government
LinkedIn 101 for GovernmentLinkedIn 101 for Government
LinkedIn 101 for Government
 
Create Account in Salesforce using Mule ESB
Create Account in Salesforce using Mule ESBCreate Account in Salesforce using Mule ESB
Create Account in Salesforce using Mule ESB
 
Mule MMC Integration with LDAP
Mule MMC Integration with LDAPMule MMC Integration with LDAP
Mule MMC Integration with LDAP
 
Integration with Salesforce using Mule ESB
Integration with Salesforce using Mule ESBIntegration with Salesforce using Mule ESB
Integration with Salesforce using Mule ESB
 
Mule api gateway overview
Mule api gateway overviewMule api gateway overview
Mule api gateway overview
 
Scatter gather in mule
Scatter gather in muleScatter gather in mule
Scatter gather in mule
 
Snapchat Slideshare Company Presentation
Snapchat Slideshare Company PresentationSnapchat Slideshare Company Presentation
Snapchat Slideshare Company Presentation
 
Snapchat Presentation - Billy Irwin
Snapchat Presentation - Billy IrwinSnapchat Presentation - Billy Irwin
Snapchat Presentation - Billy Irwin
 
Conclusion de facebook
Conclusion de facebookConclusion de facebook
Conclusion de facebook
 
Introduction to cooperative auditing
Introduction to cooperative auditingIntroduction to cooperative auditing
Introduction to cooperative auditing
 
Snapchat
SnapchatSnapchat
Snapchat
 
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
 
Power Point Del Facebook
Power Point Del FacebookPower Point Del Facebook
Power Point Del Facebook
 
The advantages and disadvantages from using facebook
The advantages and disadvantages from using facebookThe advantages and disadvantages from using facebook
The advantages and disadvantages from using facebook
 
Enterprise service bus(esb)
Enterprise service bus(esb)Enterprise service bus(esb)
Enterprise service bus(esb)
 
Facebook ppt
Facebook pptFacebook ppt
Facebook ppt
 
ESB Overview
ESB OverviewESB Overview
ESB Overview
 
Facebook Presentation
Facebook PresentationFacebook Presentation
Facebook Presentation
 

Ähnlich wie Integrate facebook using mule esb

Integrate with facebook connector
Integrate with facebook connectorIntegrate with facebook connector
Integrate with facebook connectorSon Nguyen
 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docxehathis
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platformVenkatesh Narayanan
 
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
 
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
 
Creating a content managed facebook app
Creating a content managed facebook appCreating a content managed facebook app
Creating a content managed facebook appOS-Cubed, Inc.
 
How to create Zoom Meet with Pega
How to create Zoom Meet with PegaHow to create Zoom Meet with Pega
How to create Zoom Meet with PegaSamuelJude1
 
Facebook Feed snippet in odoo
Facebook Feed snippet in odoo Facebook Feed snippet in odoo
Facebook Feed snippet in odoo Axis Technolabs
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coinnithiya
 
How to get and set a PrestaShop Facebook Addon on your website?
How to get and set a PrestaShop Facebook Addon on your website?How to get and set a PrestaShop Facebook Addon on your website?
How to get and set a PrestaShop Facebook Addon on your website?Knowband Store
 
Facebook Open Graph Tech Requirements
Facebook Open Graph Tech RequirementsFacebook Open Graph Tech Requirements
Facebook Open Graph Tech RequirementsAffinitive
 
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
 
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
 

Ähnlich wie Integrate facebook using mule esb (20)

Mule with facebook
Mule with facebookMule with facebook
Mule with facebook
 
Integrate with facebook connector
Integrate with facebook connectorIntegrate with facebook connector
Integrate with facebook connector
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docx
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
Facebook_Coin
Facebook_CoinFacebook_Coin
Facebook_Coin
 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platform
 
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
 
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
 
Creating a content managed facebook app
Creating a content managed facebook appCreating a content managed facebook app
Creating a content managed facebook app
 
How to create Zoom Meet with Pega
How to create Zoom Meet with PegaHow to create Zoom Meet with Pega
How to create Zoom Meet with Pega
 
Facebook Feed snippet in odoo
Facebook Feed snippet in odoo Facebook Feed snippet in odoo
Facebook Feed snippet in odoo
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
How to get and set a PrestaShop Facebook Addon on your website?
How to get and set a PrestaShop Facebook Addon on your website?How to get and set a PrestaShop Facebook Addon on your website?
How to get and set a PrestaShop Facebook Addon on your website?
 
Facebook Open Graph Tech Requirements
Facebook Open Graph Tech RequirementsFacebook Open Graph Tech Requirements
Facebook Open Graph Tech Requirements
 
Magento Facebook Deal Extension
Magento Facebook Deal ExtensionMagento Facebook Deal Extension
Magento Facebook Deal Extension
 
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
 
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
 
Facebook Connect
Facebook ConnectFacebook Connect
Facebook Connect
 

Mehr von Sanjeet Pandey

Features of Mule SAP Connector
Features of Mule SAP ConnectorFeatures of Mule SAP Connector
Features of Mule SAP ConnectorSanjeet Pandey
 
Best way to deploy mule application
Best way to deploy mule applicationBest way to deploy mule application
Best way to deploy mule applicationSanjeet Pandey
 
Get Queue List from Microsoft Azure using Mule ESB
Get Queue List from Microsoft Azure using Mule ESBGet Queue List from Microsoft Azure using Mule ESB
Get Queue List from Microsoft Azure using Mule ESBSanjeet Pandey
 
Deployment of Mule ESB Application using MMC
Deployment of Mule ESB Application using MMCDeployment of Mule ESB Application using MMC
Deployment of Mule ESB Application using MMCSanjeet Pandey
 
Integration with SAP using Mule ESB
Integration with SAP using Mule ESBIntegration with SAP using Mule ESB
Integration with SAP using Mule ESBSanjeet Pandey
 
Integration with CMIS using Mule ESB
Integration with CMIS using Mule ESBIntegration with CMIS using Mule ESB
Integration with CMIS using Mule ESBSanjeet Pandey
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBSanjeet Pandey
 
Integration with Sercice-Now using Mule ESB
Integration with Sercice-Now using Mule ESBIntegration with Sercice-Now using Mule ESB
Integration with Sercice-Now using Mule ESBSanjeet Pandey
 
Integration with Microsoft Azure using Mule ESB
Integration with Microsoft Azure using Mule ESBIntegration with Microsoft Azure using Mule ESB
Integration with Microsoft Azure using Mule ESBSanjeet Pandey
 

Mehr von Sanjeet Pandey (9)

Features of Mule SAP Connector
Features of Mule SAP ConnectorFeatures of Mule SAP Connector
Features of Mule SAP Connector
 
Best way to deploy mule application
Best way to deploy mule applicationBest way to deploy mule application
Best way to deploy mule application
 
Get Queue List from Microsoft Azure using Mule ESB
Get Queue List from Microsoft Azure using Mule ESBGet Queue List from Microsoft Azure using Mule ESB
Get Queue List from Microsoft Azure using Mule ESB
 
Deployment of Mule ESB Application using MMC
Deployment of Mule ESB Application using MMCDeployment of Mule ESB Application using MMC
Deployment of Mule ESB Application using MMC
 
Integration with SAP using Mule ESB
Integration with SAP using Mule ESBIntegration with SAP using Mule ESB
Integration with SAP using Mule ESB
 
Integration with CMIS using Mule ESB
Integration with CMIS using Mule ESBIntegration with CMIS using Mule ESB
Integration with CMIS using Mule ESB
 
Integration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESBIntegration with Microsoft SharePoint using Mule ESB
Integration with Microsoft SharePoint using Mule ESB
 
Integration with Sercice-Now using Mule ESB
Integration with Sercice-Now using Mule ESBIntegration with Sercice-Now using Mule ESB
Integration with Sercice-Now using Mule ESB
 
Integration with Microsoft Azure using Mule ESB
Integration with Microsoft Azure using Mule ESBIntegration with Microsoft Azure using Mule ESB
Integration with Microsoft Azure using Mule ESB
 

Kürzlich hochgeladen

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
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
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
 
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
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
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
 
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
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
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
 

Kürzlich hochgeladen (20)

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
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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
 
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
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
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
 
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
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
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
 

Integrate facebook using mule esb

  • 1. www.sanjeetpandey.com www.sanjeetpandey.com Prepared by – Sanjeet Pandey Integrate Facebook using Mule ESB
  • 2. www.sanjeetpandey.com 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. www.sanjeetpandey.com 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. www.sanjeetpandey.com 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. www.sanjeetpandey.com 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. www.sanjeetpandey.com  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. www.sanjeetpandey.com 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
  • 9. www.sanjeetpandey.com 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. www.sanjeetpandey.com  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. www.sanjeetpandey.com  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. www.sanjeetpandey.com  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. www.sanjeetpandey.com 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. www.sanjeetpandey.com  The XML configuration for the new flow will be as shown below
  • 15. www.sanjeetpandey.com  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. www.sanjeetpandey.com 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
  • 18. www.sanjeetpandey.com  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. www.sanjeetpandey.com 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