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)
-   -   Mini Mods - Easiest way to add Facebook Comments on thread (https://vborg.vbsupport.ru/showthread.php?t=293594)

naveeid 01-04-2013 11:00 PM

Easiest way to add Facebook Comments on thread
 
1 Attachment(s)
hi friends

i was using the old modification to add facebook comments on my vbulletin forum. but it was giving multiple errors and problems.


here is the method.

1) Enable facebook from settings

2) go to show thread templates / SHOWTHREAD

FIND: {vb:raw similarthreads}

paste this code above

Code:



<!-- FB Comments -->

<div align=center><br><br>
<div id="fb-root"></div>
<div class="fb-comments" data-href="http://www.YourWEBsiteAddress.com/{vb:raw thread_url}" data-numposts="5" data-colorscheme="light"></div>
<br><br></div>
<!-- /FB Comments -->


=>Please dont forget to change my website name with your own website forum home page url.


=>Note:- i hope you have given your facebook application API key in your vbulletin facebook settings.

here is screen shot of the modification , its working fine.


https://vborg.vbsupport.ru/external/2013/02/28.jpg

naveeid 01-05-2013 12:59 AM

i have installed it in my own forum , you can see its demo here , for example see this page
facebook comments are given below the thread
http://www.nidokidos.org/threads/178012

naveeid 01-05-2013 03:27 AM

1 Attachment(s)
demo image

Thangvip9x 01-05-2013 04:37 AM

If your site die then mod wrong, i can replace with url my site ok

naveeid 01-05-2013 05:56 AM

brother this mod is not dependent of my website, every one has to place its own url of their website.

Thangvip9x 01-05-2013 08:21 AM

Thanks supported

naveeid 01-06-2013 03:11 AM

you are welcome

JAFRI 01-06-2013 03:50 PM

better : https://vborg.vbsupport.ru/showthread.php?t=239023

sodasusu 01-08-2013 01:29 AM

its work thx ..so simple

naveeid 01-08-2013 04:47 AM

yes its simple. thanks.

naveeid 01-08-2013 04:48 AM

@jafri , brother the mod you mentioned is excellent. and previously i was also using it. its good work, but its very old and it is showing multiple errors on different browser. the code needs to be updated.

now i have implemented this new mod in my own website , its working fine without any errors.

morrow 01-10-2013 11:51 PM

I've installed this mod and have a question. I have a facebook page that contains the same content as my website. WHen I enter a comment, I'd like for that comment to be posted to my facebook page that is dedicated to the same as my website and not published to my personal facebook page.

I have added the API key and the secret word key to my vbulletin settings. Am I on the right track or am I not understanding what this mod is? I don't need my friends to see updated posts from my website.

Thanks.

naveeid 01-11-2013 12:47 AM

1 Attachment(s)
brother , this mod adds a feature , that facebook users can post comments at bottom of the thread. thats all. whever they will comment , the post will be shared on their walls. and also their comments will appear in your thread bottom. this is all. you can see in this screen shot also.

Princezz 01-15-2013 04:27 AM

Works fine, thanks! :)

naveeid 01-16-2013 05:33 AM

thanks and welcome princezz.

macroforum 02-05-2013 01:16 PM

Thanks for this useful mod!
I have dark theme and the comments are black...how can i change the font color?
Thanks
Antonio

sivaganeshk 02-12-2013 09:18 AM

@Macroforum : use this

<div class="fb-comments" data-href="http://example.com" data-width="470" data-num-posts="10" data-colorscheme="dark"></div>

if u need more modification, check http://developers.facebook.com/docs/...gins/comments/

macroforum 02-13-2013 07:27 AM

Quote:

Originally Posted by sivaganeshk (Post 2403719)
@Macroforum : use this

<div class="fb-comments" data-href="http://example.com" data-width="470" data-num-posts="10" data-colorscheme="dark"></div>

if u need more modification, check http://developers.facebook.com/docs/...gins/comments/

Thanks for your help!!! :)
Antonio

kurti 04-28-2013 04:42 PM

hi,
can you please explain this part in details:
"=>Note:- i hope you have given your facebook application API key in your vbulletin facebook settings."

i have no idea what to do about that. i never set up an application before. :)

i'm using vB3.7 btw.

kartheekb 07-17-2013 06:49 AM

Cool one Brother..
but the comment is not loading after posting.. show time its showing only if i reload page...


The Previous code shows errors...
this one hows errors : https://vborg.vbsupport.ru/showthread.php?t=239023

kotturocking 03-08-2014 09:31 PM

not working anymore ... checked .

Bob_R 04-30-2014 07:59 PM

Just used this. Do not see it on Facebook!

ForceHSS 04-30-2014 09:13 PM

Works for me

Bob_R 04-30-2014 11:40 PM

Quote:

Originally Posted by ForceHSS (Post 2495571)
Works for me

The only thing I can think of is I have array code in mine.

Don't you? Do you let your members comment in private and/or staff forums?

ForceHSS 05-01-2014 01:21 AM

Why would they have access to private or staff forums

Bob_R 05-01-2014 02:47 PM

Meaning the members who are staff, of course.

ForceHSS 05-01-2014 04:04 PM

I find it does not work very well in staff/private sections even know it gives you the option to comment

Bob_R 05-01-2014 04:19 PM

So, then why is it not working for me if the array code is not interferring?

ForceHSS 05-01-2014 04:26 PM

As i cant see your coding its hard to tell. It could be other plugins or template changes messing it up have you tried putting it on the default skin that only has the changes above. If you can post the template you changed

Bob_R 05-01-2014 05:42 PM

I got some kind of error. It posted on my site but not on Facebook.

Now, the error is not there so i can't copy it. Something about the URL og being invalid?

ForceHSS 05-01-2014 05:50 PM

Was that from a section that guests cant see. Check server error logs see if it is there

duditas 05-15-2014 01:40 AM

It works perfectly well, naveeid. Thank you very much.

naveeid 05-15-2014 10:36 PM

you are very welcome duditas :)

naveeid 05-15-2014 10:38 PM

@bob_r
have you enabled facebook application from vbulletin settings?

dany_danay 05-28-2014 07:03 PM

Something for Twitter?

john7911 05-31-2014 07:50 AM

Thank you,
It does not work for me :(
If I use this one it's work https://vborg.vbsupport.ru/showthrea...239023&page=11

look at these images:
https://vborg.vbsupport.ru/external/2014/05/1.jpg

https://vborg.vbsupport.ru/external/2014/05/2.jpg

https://vborg.vbsupport.ru/external/2014/05/3.jpg

My forum:
http://www.faouweb.net/forum/forum.php

john7911 06-02-2014 09:33 AM

Please help
https://vborg.vbsupport.ru/showpost....8&postcount=36

ForceHSS 06-02-2014 10:38 AM

Maybe you put the code in the wrong place can you upload your SHOWTHREAD template to notepad and upload it to here so I can see the code I have this working on 4.2.2. What vb version are you using?

john7911 06-03-2014 04:41 AM

1 Attachment(s)
Hi,
Here is my SHOWTHREAD.
I'm using 4.2.2
Thank you ;)

ForceHSS 06-03-2014 05:17 AM

try it like
Code:

<!-- FB Comments -->
<div class="fb-comments" data-href="http://www.faouweb.net/{vb:raw relpath}" data-num-posts="2" data-width="470"></div>
<!-- /FB Comments -->

You have it like this
Code:

<!-- FB Comments -->
<div class="fb-comments" data-href="http://www.faouweb.net/forum/{vb:raw relpath}" data-num-posts="2" data-width="470"></div>
<!-- /FB Comments -->

If this does not work for you then it might never


All times are GMT. The time now is 06:11 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.01235 seconds
  • Memory Usage 1,791KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete