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

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Destacado

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
 

Destacado (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
 

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

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

Más de 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
 

Más de 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
 

Último

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 

Último (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 

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