mrbean Posted November 11, 2012 Share Posted November 11, 2012 I know this sounds stupid/dump but i need your help. I've got this: I want this: In facebook developers page, they show some examples. I tried it but didn't get what I want. Can someone help me with it? Quote Link to comment https://forums.phpfreaks.com/topic/270564-facebook-like-button/ Share on other sites More sharing options...
codefossa Posted November 11, 2012 Share Posted November 11, 2012 They give like 3 options for what type of button you want. That's nothing special, just one of the default ones. I don't know if you can actually customize it yourself, never really got into it much, but go look where they give you the code for the button. Quote Link to comment https://forums.phpfreaks.com/topic/270564-facebook-like-button/#findComment-1391703 Share on other sites More sharing options...
mrbean Posted November 11, 2012 Author Share Posted November 11, 2012 It works, but I can't see my "likes" on my facebook page I liked my own page Quote Link to comment https://forums.phpfreaks.com/topic/270564-facebook-like-button/#findComment-1391704 Share on other sites More sharing options...
cutielou22 Posted November 13, 2012 Share Posted November 13, 2012 I am not sure if you have already tried this or not, but this is what I use to show how many likes for my button. Put somewhere after the <body> tag: <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> Put this where the button should appear: <div class="fb-like" data-href="FULLURLHERE" data-send="false" data-width="450" data-show-faces="false"></div> Replace "FULLURLHERE" with your facebook page url. There is also a facebook like button generator: https://developers.connect.facebook.com/docs/reference/plugins/like/ Quote Link to comment https://forums.phpfreaks.com/topic/270564-facebook-like-button/#findComment-1391966 Share on other sites More sharing options...
gizmola Posted November 13, 2012 Share Posted November 13, 2012 My recollection is that likes don't register immediately. As the owner of the "liked" page, you get a notification whenever someone likes the page. Quote Link to comment https://forums.phpfreaks.com/topic/270564-facebook-like-button/#findComment-1391970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.