[vc_row][vc_column][vc_column_text]Social world is emerging and Facebook is one of the components. It is quite easy to integrate Facebook to any XPages application.

What are the advantages of Integrating Facebook into the XPages

  • You don’t want to look into other browser pages to look for feeds
  • Social Collaboration and day to day activities can be update easily in your intranet environment

How to integrate?

Need to integrate Facebook API in to the XPages using Script Tags

<script> (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js .src = “//connect. facebook.net/en_US/all.js#xfbml=1”;
fjs .parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’)); </script>

The FB like button will be visible if the following code is included in the snippet

<div class=”fb-like” data-href= “https://www.maargasystems.com” data-send=”true” data-width= “450” data-show-faces =”true”></ div>

The FB Comments can be included with the following code. ‘posts’ tag can display the number of tweets and ‘data-width’ actually can specify the width.

<div class=”fb-comments” data-href=”https://dominotemplatedev.maargasystems.com/Webinar/SocialeRecruiter.nsf/xpTwitter.xsp” data-num-posts= “4” data-width =”470″></ div>

*Note: The API of the facebook may change.ย  Look at the Facebook site for the updated API.

Maarga is a boutique consultancy with deep expertise in Lotus Notes migration, digital transformation and enterprise collaboration. Reach out to Maarga with your needs at Sales@maargasystems.com
[/vc_column_text][/vc_column][/vc_row]

more similar articles