Questionaries.org
Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.
Let us know at info@questionaries.org
How to implement the Facebook “Like” button for my website
9
like
0
dislike
am trying to implement facebook like button on my website. The first four lines in the code is already there on my site after the end of the "" tag.
To implement the "Like button" i have added the second script (Line five to the end) and ran the application. Its giving me an error as
"Microsoft Jscript runtime error:'_onLoad' is null or not an object"
Please Let me know. Thanks
[code]<script type="text/javascript" src="
http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php"></script>
<script type="text/javascript">
FB.init("myapikey", "xd_receiver.htm", { "reloadIfSessionStateChanged": true });
</script>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: 'myappid', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
[/code]
asked
2 years
ago
by
william
(
91,210
points)
question
1 Answer
1
like
0
dislike
just (if you using Javascript SDK of facebook)
<fb:like-box profile_id="185550966885"></fb:like-box>
Also in the page
http://developers.facebook.com/docs/reference/plugins/like
there is a Get Code... thats works, no need to add this javascript on your code.
answered
2 years
ago
by
BloggeR
(
179,550
points)
Related questions
10
like
0
dislike
1
answer
How to promote my website in Twitter and Facebook?
asked
2 years
ago
by
daneim
(
127,080
points)
question
website
seo
google
submission
8
like
0
dislike
1
answer
How to rank no 1 for the term biometric monitors and other terms like biometric security, Biometric Devices?
asked
2 years
ago
by
daneim
(
127,080
points)
question
create
software
eeo
program
10
like
0
dislike
4
answers
How i can get more traffic for my website?
asked
2 years
ago
by
starcaller
(
24,080
points)
website
traffic
question
9
like
0
dislike
1
answer
Need facebook like it button module for warez site?
asked
1 year
ago
by
webmaster
(
25,380
points)
facebook
module
warez
8
like
0
dislike
1
answer
How can I display the “first time here” bar like SO and slide the other DIVs down?
asked
2 years
ago
by
william
(
91,210
points)
question