Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook Like Box for Your Xtgem Mobile Site
#1
Hai everyone..

[Image: 11057178_955752887777717_1517751206_n.png]

Creating page on Facebook and getting followers was not very easy, because people will not like our page by getting in to Facebook through a link from our mobile site. But if we have a Facebook Like box embedded on our mobile site. Sure people will like it. 

Through this way you can increase your Facebook Like followers.

Add below code in between the <head> and </head> tag.

Code:
<div id="fb-root"></div>
<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/sdk.js#xfbml=1&version=v2.7";
 fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Add the below code to where you want to show the Like Box.

Code:
<div class="fb-page" data-href="https://www.facebook.com/Your Facebook Page Name Here" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/facebook" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/facebook">Facebook</a></blockquote></div>

Don't forget to change the "Your Facebook Page Name Here" to yours.

Hope you liked the tutorial..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)