SlideShare a Scribd company logo
www.sanjeetpandey.com
www.sanjeetpandey.com
๏ถ 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
๏‚ก 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
๏‚จ 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
๏ƒ˜ 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
๏ƒ˜ 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
๏ƒ˜ 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
๏ƒ˜ 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
๏ƒ˜ 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
๏‚จ 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

More Related Content

What's hot (20)

Integrate facebook using mule esb
Integrate facebook using mule esbIntegrate facebook using mule esb
Integrate facebook using mule esb
Sanjeet Pandey
ย 
Integration with microsoft share point
Integration with microsoft share pointIntegration with microsoft share point
Integration with microsoft share point
Son Nguyen
ย 
Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked in
Son Nguyen
ย 
Query in share point by mule
Query in share point by muleQuery in share point by mule
Query in share point by mule
Son Nguyen
ย 
Integrate with facebook connector
Integrate with facebook connectorIntegrate with facebook connector
Integrate with facebook connector
Son Nguyen
ย 
Integration with dropbox
Integration with dropboxIntegration with dropbox
Integration with dropbox
Son Nguyen
ย 
Anypoint lessons
Anypoint lessonsAnypoint lessons
Anypoint lessons
Dwight Cavalcanti
ย 
Cloud hub with mule
Cloud hub with muleCloud hub with mule
Cloud hub with mule
Son Nguyen
ย 
Mule
MuleMule
Mule
irfan1008
ย 
Deploy with maven
Deploy with mavenDeploy with maven
Deploy with maven
Son Nguyen
ย 
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
Sanjeet Pandey
ย 
Anypoint Salesforce Connector With Mulesoft
Anypoint Salesforce Connector With MulesoftAnypoint Salesforce Connector With Mulesoft
Anypoint Salesforce Connector With Mulesoft
Jitendra Bafna
ย 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
Rajkattamuri
ย 
Mule Salesforce Connector
Mule Salesforce ConnectorMule Salesforce Connector
Mule Salesforce Connector
Ankush Sharma
ย 
Integration of linked in using mule esb
Integration of linked in using mule esbIntegration of linked in using mule esb
Integration of linked in using mule esb
Sanjeet Pandey
ย 
Mule management console installation
Mule management console installation Mule management console installation
Mule management console installation
javeed_mhd
ย 
Mule data bases
Mule data basesMule data bases
Mule data bases
Naresh Naidu
ย 
Integrate to retrieve data microsoft azure
Integrate to retrieve data microsoft azureIntegrate to retrieve data microsoft azure
Integrate to retrieve data microsoft azure
Son Nguyen
ย 
Integration with CMIS using Mule ESB
Integration with CMIS using Mule ESBIntegration with CMIS using Mule ESB
Integration with CMIS using Mule ESB
Sanjeet Pandey
ย 
Microsoft azure integration
Microsoft azure integrationMicrosoft azure integration
Microsoft azure integration
Son Nguyen
ย 
Integrate facebook using mule esb
Integrate facebook using mule esbIntegrate facebook using mule esb
Integrate facebook using mule esb
Sanjeet Pandey
ย 
Integration with microsoft share point
Integration with microsoft share pointIntegration with microsoft share point
Integration with microsoft share point
Son Nguyen
ย 
Integrate with linked in
Integrate with linked inIntegrate with linked in
Integrate with linked in
Son Nguyen
ย 
Query in share point by mule
Query in share point by muleQuery in share point by mule
Query in share point by mule
Son Nguyen
ย 
Integrate with facebook connector
Integrate with facebook connectorIntegrate with facebook connector
Integrate with facebook connector
Son Nguyen
ย 
Integration with dropbox
Integration with dropboxIntegration with dropbox
Integration with dropbox
Son Nguyen
ย 
Cloud hub with mule
Cloud hub with muleCloud hub with mule
Cloud hub with mule
Son Nguyen
ย 
Mule
MuleMule
Mule
irfan1008
ย 
Deploy with maven
Deploy with mavenDeploy with maven
Deploy with maven
Son Nguyen
ย 
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
Sanjeet Pandey
ย 
Anypoint Salesforce Connector With Mulesoft
Anypoint Salesforce Connector With MulesoftAnypoint Salesforce Connector With Mulesoft
Anypoint Salesforce Connector With Mulesoft
Jitendra Bafna
ย 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
Rajkattamuri
ย 
Mule Salesforce Connector
Mule Salesforce ConnectorMule Salesforce Connector
Mule Salesforce Connector
Ankush Sharma
ย 
Integration of linked in using mule esb
Integration of linked in using mule esbIntegration of linked in using mule esb
Integration of linked in using mule esb
Sanjeet Pandey
ย 
Mule management console installation
Mule management console installation Mule management console installation
Mule management console installation
javeed_mhd
ย 
Mule data bases
Mule data basesMule data bases
Mule data bases
Naresh Naidu
ย 
Integrate to retrieve data microsoft azure
Integrate to retrieve data microsoft azureIntegrate to retrieve data microsoft azure
Integrate to retrieve data microsoft azure
Son Nguyen
ย 
Integration with CMIS using Mule ESB
Integration with CMIS using Mule ESBIntegration with CMIS using Mule ESB
Integration with CMIS using Mule ESB
Sanjeet Pandey
ย 
Microsoft azure integration
Microsoft azure integrationMicrosoft azure integration
Microsoft azure integration
Son Nguyen
ย 

Viewers also liked (18)

Students introduce: Greetings from greece
Students introduce: Greetings from greeceStudents introduce: Greetings from greece
Students introduce: Greetings from greece
Maria Savvopoulou
ย 
1 ะฝะตะทะฐะปะตะถ
1 ะฝะตะทะฐะปะตะถ1 ะฝะตะทะฐะปะตะถ
1 ะฝะตะทะฐะปะตะถ
Larisa Saarva
ย 
Mule anypoint exchange
Mule  anypoint exchangeMule  anypoint exchange
Mule anypoint exchange
D.Rajesh Kumar
ย 
Mule finance connectors
Mule  finance connectorsMule  finance connectors
Mule finance connectors
D.Rajesh Kumar
ย 
Cooperactiu Editorial Barcanova
Cooperactiu Editorial BarcanovaCooperactiu Editorial Barcanova
Cooperactiu Editorial Barcanova
Juliรกn Parla Pรฉrez
ย 
Mule HDFS Connector
Mule HDFS ConnectorMule HDFS Connector
Mule HDFS Connector
Ankush Sharma
ย 
Question 5 evaluation
Question 5 evaluationQuestion 5 evaluation
Question 5 evaluation
SarahOlivier1
ย 
Anypoint platform release highlights
Anypoint platform release highlightsAnypoint platform release highlights
Anypoint platform release highlights
D.Rajesh Kumar
ย 
Design fรผr eine Plattform zum Schreibenlernen im Grundschulalter
Design fรผr eine Plattform zum Schreibenlernen im GrundschulalterDesign fรผr eine Plattform zum Schreibenlernen im Grundschulalter
Design fรผr eine Plattform zum Schreibenlernen im Grundschulalter
Martin Ebner
ย 
Lifestyle tv
Lifestyle tvLifestyle tv
Lifestyle tv
judeevans1982
ย 
Mainstream films versus independent films
Mainstream films versus independent filmsMainstream films versus independent films
Mainstream films versus independent films
angelduncil
ย 
Pinoccchio, collodi
Pinoccchio, collodiPinoccchio, collodi
Pinoccchio, collodi
franca59
ย 
Engineering materials
Engineering materialsEngineering materials
Engineering materials
Prem Kothavade
ย 
The Riot Club
The Riot Club The Riot Club
The Riot Club
macdavidc10
ย 
A Scholarly Life Online - George Veletsianos #EDENRW9
A Scholarly Life Online - George Veletsianos #EDENRW9A Scholarly Life Online - George Veletsianos #EDENRW9
A Scholarly Life Online - George Veletsianos #EDENRW9
EDEN Digital Learning Europe
ย 
The Foundation Portfolio
The Foundation PortfolioThe Foundation Portfolio
The Foundation Portfolio
Naamah Hill
ย 
Mule esb presentation
Mule esb presentationMule esb presentation
Mule esb presentation
Lakshmi Prasanna Mavillapalli
ย 
ฤฐnternet Stratejileri ve E-Ticaret - 5
ฤฐnternet Stratejileri ve E-Ticaret - 5ฤฐnternet Stratejileri ve E-Ticaret - 5
ฤฐnternet Stratejileri ve E-Ticaret - 5
Erciyes University Faculty of Communication
ย 
Students introduce: Greetings from greece
Students introduce: Greetings from greeceStudents introduce: Greetings from greece
Students introduce: Greetings from greece
Maria Savvopoulou
ย 
1 ะฝะตะทะฐะปะตะถ
1 ะฝะตะทะฐะปะตะถ1 ะฝะตะทะฐะปะตะถ
1 ะฝะตะทะฐะปะตะถ
Larisa Saarva
ย 
Mule anypoint exchange
Mule  anypoint exchangeMule  anypoint exchange
Mule anypoint exchange
D.Rajesh Kumar
ย 
Mule finance connectors
Mule  finance connectorsMule  finance connectors
Mule finance connectors
D.Rajesh Kumar
ย 
Mule HDFS Connector
Mule HDFS ConnectorMule HDFS Connector
Mule HDFS Connector
Ankush Sharma
ย 
Question 5 evaluation
Question 5 evaluationQuestion 5 evaluation
Question 5 evaluation
SarahOlivier1
ย 
Anypoint platform release highlights
Anypoint platform release highlightsAnypoint platform release highlights
Anypoint platform release highlights
D.Rajesh Kumar
ย 
Design fรผr eine Plattform zum Schreibenlernen im Grundschulalter
Design fรผr eine Plattform zum Schreibenlernen im GrundschulalterDesign fรผr eine Plattform zum Schreibenlernen im Grundschulalter
Design fรผr eine Plattform zum Schreibenlernen im Grundschulalter
Martin Ebner
ย 
Lifestyle tv
Lifestyle tvLifestyle tv
Lifestyle tv
judeevans1982
ย 
Mainstream films versus independent films
Mainstream films versus independent filmsMainstream films versus independent films
Mainstream films versus independent films
angelduncil
ย 
Pinoccchio, collodi
Pinoccchio, collodiPinoccchio, collodi
Pinoccchio, collodi
franca59
ย 
Engineering materials
Engineering materialsEngineering materials
Engineering materials
Prem Kothavade
ย 
The Riot Club
The Riot Club The Riot Club
The Riot Club
macdavidc10
ย 
A Scholarly Life Online - George Veletsianos #EDENRW9
A Scholarly Life Online - George Veletsianos #EDENRW9A Scholarly Life Online - George Veletsianos #EDENRW9
A Scholarly Life Online - George Veletsianos #EDENRW9
EDEN Digital Learning Europe
ย 
The Foundation Portfolio
The Foundation PortfolioThe Foundation Portfolio
The Foundation Portfolio
Naamah Hill
ย 

Similar to Mule with facebook (20)

Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platform
Venkatesh 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 students
SkyingBlogger
ย 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
Sathiyamoorthi
ย 
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
Rupesh Sinha
ย 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docx
ehathis
ย 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
Sathiyamoorthi
ย 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
Sathiyamoorthi
ย 
Facebook_Coin
Facebook_CoinFacebook_Coin
Facebook_Coin
Sathiyamoorthi
ย 
Creating a content managed facebook app
Creating a content managed facebook appCreating a content managed facebook app
Creating a content managed facebook app
OS-Cubed, Inc.
ย 
Facebook Connect Tutorial
Facebook Connect TutorialFacebook Connect Tutorial
Facebook Connect Tutorial
Prateek Dayal
ย 
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
SamuelJude1
ย 
Facebook Connect
Facebook ConnectFacebook Connect
Facebook Connect
Pitra Satvika
ย 
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
Stuart 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 2011
Iskandar Najmuddin
ย 
Social Apps with the Force.com Toolkit for Facebook
Social Apps with the Force.com Toolkit for FacebookSocial Apps with the Force.com Toolkit for Facebook
Social Apps with the Force.com Toolkit for Facebook
Salesforce Developers
ย 
Facebook 3rd Party Api
Facebook 3rd Party ApiFacebook 3rd Party Api
Facebook 3rd Party Api
Yoss Cohen
ย 
How to Install Magento Manually
How to Install Magento ManuallyHow to Install Magento Manually
How to Install Magento Manually
M-Connect Media
ย 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
nithiya
ย 
Facebook Open Graph Tech Requirements
Facebook Open Graph Tech RequirementsFacebook Open Graph Tech Requirements
Facebook Open Graph Tech Requirements
Affinitive
ย 
Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESB
Rupesh Sinha
ย 
Introduction to facebook platform
Introduction to facebook platformIntroduction to facebook platform
Introduction to facebook platform
Venkatesh 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 students
SkyingBlogger
ย 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
Sathiyamoorthi
ย 
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
Rupesh Sinha
ย 
Facebook SSO.docx
Facebook SSO.docxFacebook SSO.docx
Facebook SSO.docx
ehathis
ย 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
Sathiyamoorthi
ย 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
Sathiyamoorthi
ย 
Facebook_Coin
Facebook_CoinFacebook_Coin
Facebook_Coin
Sathiyamoorthi
ย 
Creating a content managed facebook app
Creating a content managed facebook appCreating a content managed facebook app
Creating a content managed facebook app
OS-Cubed, Inc.
ย 
Facebook Connect Tutorial
Facebook Connect TutorialFacebook Connect Tutorial
Facebook Connect Tutorial
Prateek Dayal
ย 
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
SamuelJude1
ย 
Facebook Connect
Facebook ConnectFacebook Connect
Facebook Connect
Pitra Satvika
ย 
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
Stuart 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 2011
Iskandar Najmuddin
ย 
Social Apps with the Force.com Toolkit for Facebook
Social Apps with the Force.com Toolkit for FacebookSocial Apps with the Force.com Toolkit for Facebook
Social Apps with the Force.com Toolkit for Facebook
Salesforce Developers
ย 
Facebook 3rd Party Api
Facebook 3rd Party ApiFacebook 3rd Party Api
Facebook 3rd Party Api
Yoss Cohen
ย 
How to Install Magento Manually
How to Install Magento ManuallyHow to Install Magento Manually
How to Install Magento Manually
M-Connect Media
ย 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
nithiya
ย 
Facebook Open Graph Tech Requirements
Facebook Open Graph Tech RequirementsFacebook Open Graph Tech Requirements
Facebook Open Graph Tech Requirements
Affinitive
ย 
Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESB
Rupesh Sinha
ย 

More from D.Rajesh Kumar (20)

Mule soft meetup_-_finland_september_25th__2020 v2.0
Mule soft meetup_-_finland_september_25th__2020 v2.0Mule soft meetup_-_finland_september_25th__2020 v2.0
Mule soft meetup_-_finland_september_25th__2020 v2.0
D.Rajesh Kumar
ย 
Meetup bangalore-sept5th 2020 (1)
Meetup bangalore-sept5th 2020 (1)Meetup bangalore-sept5th 2020 (1)
Meetup bangalore-sept5th 2020 (1)
D.Rajesh Kumar
ย 
Mule soft meetup_-_finland_july_11th__2020
Mule soft meetup_-_finland_july_11th__2020Mule soft meetup_-_finland_july_11th__2020
Mule soft meetup_-_finland_july_11th__2020
D.Rajesh Kumar
ย 
Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10
D.Rajesh Kumar
ย 
Meetup bangalore 9_novupdated
Meetup bangalore 9_novupdatedMeetup bangalore 9_novupdated
Meetup bangalore 9_novupdated
D.Rajesh Kumar
ย 
Meetup bangalore aug31st2019
Meetup bangalore aug31st2019Meetup bangalore aug31st2019
Meetup bangalore aug31st2019
D.Rajesh Kumar
ย 
Meetup bangalore june29th2019
Meetup bangalore june29th2019Meetup bangalore june29th2019
Meetup bangalore june29th2019
D.Rajesh Kumar
ย 
mulesoft meetup @ bangalore
mulesoft meetup @ bangaloremulesoft meetup @ bangalore
mulesoft meetup @ bangalore
D.Rajesh Kumar
ย 
Meetup_Bangalore_Rajesh
Meetup_Bangalore_RajeshMeetup_Bangalore_Rajesh
Meetup_Bangalore_Rajesh
D.Rajesh Kumar
ย 
Calico and container
Calico and containerCalico and container
Calico and container
D.Rajesh Kumar
ย 
Calico docker+ipam
Calico docker+ipamCalico docker+ipam
Calico docker+ipam
D.Rajesh Kumar
ย 
Calico architecture
Calico architectureCalico architecture
Calico architecture
D.Rajesh Kumar
ย 
Calico to secure host interfaces
Calico to secure host interfacesCalico to secure host interfaces
Calico to secure host interfaces
D.Rajesh Kumar
ย 
Calico and how interprets neutron api
Calico and how interprets neutron apiCalico and how interprets neutron api
Calico and how interprets neutron api
D.Rajesh Kumar
ย 
Calico with open stack and chef
Calico with open stack and chefCalico with open stack and chef
Calico with open stack and chef
D.Rajesh Kumar
ย 
Calico with open stack
Calico with open stackCalico with open stack
Calico with open stack
D.Rajesh Kumar
ย 
Calico with docker
Calico with dockerCalico with docker
Calico with docker
D.Rajesh Kumar
ย 
Object Store in Mule
Object Store in MuleObject Store in Mule
Object Store in Mule
D.Rajesh Kumar
ย 
Slack connector with in MULE
Slack connector with in MULESlack connector with in MULE
Slack connector with in MULE
D.Rajesh Kumar
ย 
MuleSoft Offers a Data Migration Solution
MuleSoft Offers a Data Migration SolutionMuleSoft Offers a Data Migration Solution
MuleSoft Offers a Data Migration Solution
D.Rajesh Kumar
ย 
Mule soft meetup_-_finland_september_25th__2020 v2.0
Mule soft meetup_-_finland_september_25th__2020 v2.0Mule soft meetup_-_finland_september_25th__2020 v2.0
Mule soft meetup_-_finland_september_25th__2020 v2.0
D.Rajesh Kumar
ย 
Meetup bangalore-sept5th 2020 (1)
Meetup bangalore-sept5th 2020 (1)Meetup bangalore-sept5th 2020 (1)
Meetup bangalore-sept5th 2020 (1)
D.Rajesh Kumar
ย 
Mule soft meetup_-_finland_july_11th__2020
Mule soft meetup_-_finland_july_11th__2020Mule soft meetup_-_finland_july_11th__2020
Mule soft meetup_-_finland_july_11th__2020
D.Rajesh Kumar
ย 
Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10
D.Rajesh Kumar
ย 
Meetup bangalore 9_novupdated
Meetup bangalore 9_novupdatedMeetup bangalore 9_novupdated
Meetup bangalore 9_novupdated
D.Rajesh Kumar
ย 
Meetup bangalore aug31st2019
Meetup bangalore aug31st2019Meetup bangalore aug31st2019
Meetup bangalore aug31st2019
D.Rajesh Kumar
ย 
Meetup bangalore june29th2019
Meetup bangalore june29th2019Meetup bangalore june29th2019
Meetup bangalore june29th2019
D.Rajesh Kumar
ย 
mulesoft meetup @ bangalore
mulesoft meetup @ bangaloremulesoft meetup @ bangalore
mulesoft meetup @ bangalore
D.Rajesh Kumar
ย 
Meetup_Bangalore_Rajesh
Meetup_Bangalore_RajeshMeetup_Bangalore_Rajesh
Meetup_Bangalore_Rajesh
D.Rajesh Kumar
ย 
Calico and container
Calico and containerCalico and container
Calico and container
D.Rajesh Kumar
ย 
Calico docker+ipam
Calico docker+ipamCalico docker+ipam
Calico docker+ipam
D.Rajesh Kumar
ย 
Calico architecture
Calico architectureCalico architecture
Calico architecture
D.Rajesh Kumar
ย 
Calico to secure host interfaces
Calico to secure host interfacesCalico to secure host interfaces
Calico to secure host interfaces
D.Rajesh Kumar
ย 
Calico and how interprets neutron api
Calico and how interprets neutron apiCalico and how interprets neutron api
Calico and how interprets neutron api
D.Rajesh Kumar
ย 
Calico with open stack and chef
Calico with open stack and chefCalico with open stack and chef
Calico with open stack and chef
D.Rajesh Kumar
ย 
Calico with open stack
Calico with open stackCalico with open stack
Calico with open stack
D.Rajesh Kumar
ย 
Calico with docker
Calico with dockerCalico with docker
Calico with docker
D.Rajesh Kumar
ย 
Object Store in Mule
Object Store in MuleObject Store in Mule
Object Store in Mule
D.Rajesh Kumar
ย 
Slack connector with in MULE
Slack connector with in MULESlack connector with in MULE
Slack connector with in MULE
D.Rajesh Kumar
ย 
MuleSoft Offers a Data Migration Solution
MuleSoft Offers a Data Migration SolutionMuleSoft Offers a Data Migration Solution
MuleSoft Offers a Data Migration Solution
D.Rajesh Kumar
ย 

Recently uploaded (20)

Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
ย 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
ย 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
ย 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
ย 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
ย 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
ย 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
ย 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
ย 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
ย 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
ย 
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
ย 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
ย 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
ย 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
ย 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
ย 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
ย 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
ย 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
ย 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
ย 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
ย 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
ย 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
ย 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
ย 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
ย 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
ย 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
ย 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
ย 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
ย 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
ย 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
ย 
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything โ€“ Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
ย 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
ย 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
ย 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
ย 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
ย 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
ย 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
ย 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
ย 

Mule with facebook

  • 2. www.sanjeetpandey.com ๏ถ 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 ๏‚ก 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 ๏‚จ 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 ๏ƒ˜ 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 ๏ƒ˜ 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 ๏ƒ˜ 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 ๏ƒ˜ 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 ๏ƒ˜ 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 ๏‚จ 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