vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin Forum Sideblocks - Block: FaceBook Like Box (https://vborg.vbsupport.ru/showthread.php?t=250089)

JAFRI 09-06-2010 10:00 PM

Block: FaceBook Like Box
 
1 Attachment(s)
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

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.

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&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.

Code:

<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
---------------------------------------------------------------

JAFRI 09-08-2010 04:28 AM

reserved!

Click to Mark as Installed.

bornoffire 09-08-2010 03:14 PM

1 Attachment(s)
When I tried all I get is this:

JAFRI 09-10-2010 06:19 AM

Quote:

Originally Posted by bornoffire (Post 2095461)
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

hoof 09-10-2010 09:09 AM

Quote:

Originally Posted by bornoffire (Post 2095461)
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

Quote:

Originally Posted by hoof (Post 2096135)
Same here

Quote:

Originally Posted by denman75 (Post 2096136)
same here

d=XXXXXXXXXXXX&amp

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/...ugins/like-box

Nephalim 09-12-2010 07:02 AM

Quote:

Originally Posted by denman75 (Post 2096136)
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

Quote:

Originally Posted by Burnt (Post 2097204)
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.

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
Quote:

<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fp ages%2Fabcdef%123456789&amp;width=245&amp;connections=10&amp;show_faces=t rue&amp;stream=false&amp;header=true&amp;height=25 5" 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
HTML Code:

<center><iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2Fmetallifukincacom%2F139184612825288&amp;width=205&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true&amp;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&amp;width=250&a mp;colorscheme=light&amp;show_faces=true&amp;borde r_color=maroon&amp;stream=fals e&amp;header=false&amp;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&amp;width=250 &amp;height=400&amp;connection s=10&amp;show_faces=true&amp;stream=false&amp;head e r=true&amp;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)

Jonm 10-14-2011 05:52 PM

sorted and working...

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.

Code:

<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fplatform&amp;width=240&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=false&amp;header=false&amp;height=400" 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

Quote:

Originally Posted by hoadiem (Post 2233206)
it shows fine on the developer page but on my vbb i don't see it show face, any idea

Quote:

Originally Posted by gsmlover4u (Post 2407571)
show me only blank blok

Quote:

Originally Posted by oldfan (Post 2213637)
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

Marv 07-20-2014 08:42 AM

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

Quote:

Originally Posted by sticky (Post 2542071)
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...ns/page-plugin

Then set the dimensions there.


All times are GMT. The time now is 05:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01216 seconds
  • Memory Usage 1,789KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete