Integrating facebook with my website in 3 different ways
I would like to integrate my website to facebook in three different ways.
My goals are :
A facebook like button for my facebook page in my website.
A facebook like button for my domain url in my menubar.
A facebook like button for the specific content inside my website.
example:`domain.com/content1.html'
All I have are the following two blocks of 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/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
and
<div class="fb-like" data-href="URL here" data-width="450"
data-show-faces="true" data-send="true"></div>
Questions:
Do I need an app ID or anything to proceed.
Is it possible to accomplish all three of my codes with the above two
blocks of HTML 5 code. If yes, what will the differences be between them.
No comments:
Post a Comment