View Full Version : vBulletin Forum Sideblocks - Block: FaceBook Like Box
JAFRI
09-06-2010, 10:00 PM
FaceBook Like Box
The Like Box is a special version of the Like Button designed only for Facebook Pages. It allows admins to promote their Pages and embed a simple feed of content from a Page into other sites.
Get Facebook like Code : Like Box - Facebook Developers (https://developers.facebook.com/docs/plugins/like-box-for-pages/)
1. Facebook Page URL : Enter Your Facebook Page Url
2. Width: 240
3. Height: 240
4. Color Scheme: anything you like
Click Get Code
Include the JavaScript SDK on your page once, ideally right after the opening <body> tag.
Copy code and paste in your header template.
<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&appId=xxxxxxxxx";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Note: Edit XXXX Your Application ID
-------------------------------------------
Place the code for your plugin wherever you want the plugin to appear on your page.
<div class="fb-like-box" data-href="https://www.facebook.com/xxxxx" data-width="240" data-height="240" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>Edit XXXX Your Facebook Page URL.
Now Go : Forum Blocks Manager > Add new block > Custom HTML/PHP
Title : Forum like box
Content Type : HTML
Content: put code ^^^^^^
enjoy.
www.shiafriends.com (http://www.shiafriends.com)
---------------------------------------------------------------
JAFRI
09-08-2010, 04:28 AM
reserved!
Click to Mark as Installed (javascript:%20vborg_doinstall(250089,true)).
bornoffire
09-08-2010, 03:14 PM
When I tried all I get is this:
JAFRI
09-10-2010, 06:19 AM
When I tried all I get is this:
check your application ID.
alon1853
09-10-2010, 06:27 AM
Wow Thanks :]
I Will Be Using it for a Friend
When I tried all I get is this:
Same here
denman75
09-10-2010, 09:13 AM
same here
JAFRI
09-12-2010, 05:11 AM
Same here
same here
d=XXXXXXXXXXXX&
xxx < your fb application Ib .itis working fine.:)
bornoffire
09-12-2010, 06:11 AM
I just used the code provided in the link and it worked http://developers.facebook.com/docs/reference/plugins/like-box
Nephalim
09-12-2010, 07:02 AM
same here
same here :confused:
Merjawy
09-12-2010, 08:32 AM
Same issue here,, while my App. ID is correct and works on the connection
I managed it by replacing the app. ID with my page's name and all works now
Thanks
Burnt
09-12-2010, 04:48 PM
Also have the right application ID.. just showing what its showing everyone else..
Well also went to the code link and just put in everything and now it works..
JAFRI
10-02-2010, 02:13 PM
Also have the right application ID.. just showing what its showing everyone else..
Well also went to the code link and just put in everything and now it works..
ur right.
Click to Mark as Installed (http://javascript%3cb%3e%3c/b%3E:%20vborg_doinstall%28250089,true%29).
paulnicholson
11-01-2010, 11:59 PM
This only shows up on one page of the forum. How can I make it show up on every single page of vbulletin 4.0.8 suite, including CMS? And how do I remove the ugly box around it and designate the sidebar width please?
ARSamo
05-29-2011, 01:05 PM
i've replace the code with following
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fp ages%2Fabcdef%123456789&width=245&connections=10&s how_faces=true&stream=false&header=true&height=255" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:245px; height:255px;" allowTransparency="true"></iframe>
Keys:
Name displayed in URL
Figure ID displayed in URL
oldfan
06-27-2011, 05:23 PM
got mine working with this
<center><iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fp ages%2Fmetallifukincacom%2F139184612825288&width=2 05&colorscheme=light&show_faces=true&border_color& stream=true&header=true&height=300" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:205px; height:300px;" allowTransparency="true"></iframe></center>
oldfan
06-27-2011, 05:48 PM
Now if I could get it to work with two different colored skins :(
CouponWCents
08-13-2011, 07:04 PM
MIne says this:
Could not retrieve id for the specified page. Please verify correct href was passed in.
CouponWCents
08-13-2011, 07:12 PM
I got it with this:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fc ouponwithcents&width=250&a mp;colorscheme=light&show_faces=true&border_color= maroon&stream=fals e&header=false&height=490" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:490px;" allowTransparency="true"></iframe>
hoadiem
08-13-2011, 11:57 PM
it shows fine on the developer page but on my vbb i don't see it show face, any idea
mikey747
10-14-2011, 10:45 AM
This worked for me:
<iframe src="http://www.facebook.com/plugins/likebox.php?profile=1&id=XXXXXXXXXXX&width=250&height=400&connection s=10&show_faces=true&stream=false&heade r=true&height=255" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:245px; height:255px; allowTransparency="true"></iframe>
Where XXXXXX is your fan page ID (taken from the URL when you view your page)
j1gsaw
04-27-2012, 09:28 AM
anyone, can you explain to me clearly?
i dont get it with current FB settings..
thanks for attention..:)
tagline
05-19-2012, 04:09 PM
Work perfect! Thank's
Antonio Pereira
06-15-2012, 07:41 AM
Some minor changes to the code to work bether.
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fp latform&width=240&colorscheme=light&show_faces=tru e&border_color&stream=false&header=false&height=40 0" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:400px;" allowTransparency="true"></iframe>
Change plataform with your url id.
Example URL: http://www.facebook.com/platform
URL ID:plataform
Best Regards
gsmlover4u
03-03-2013, 11:46 AM
show me only blank blok
JAFRI
04-05-2014, 12:04 PM
it shows fine on the developer page but on my vbb i don't see it show face, any idea
show me only blank blok
Now if I could get it to work with two different colored skins :(
HTML5 Script Code Added.
badawidollah
07-20-2014, 05:13 AM
i need follow button, anyone can help
JAFRI,
if a user is not logged into facebook, facebook returns an empty block. Of course. Could you implement an option that checks if a user is logged in and if not, show a facebook like-button for example, where no login status is needed?
Would be great. The empty box is some kind of...ugly ;)
sticky
04-01-2015, 12:41 AM
I kind of have this working but it isn't clean. The Facebook social plugin part just keeps going no matter what I set the length to.
Any ideas?
RichieBoy67
02-19-2016, 01:49 AM
I kind of have this working but it isn't clean. The Facebook social plugin part just keeps going no matter what I set the length to.
Any ideas?
That Like Box app is depreciated now. Use this: https://developers.facebook.com/docs/plugins/page-plugin
Then set the dimensions there.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.