we8u
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Facebook Comments for WordPress] Doesn’t work for meHi Bryan, can you post a direct link to some of the posts you’re having problems with? I only saw disqus comment forms.
shaun
Hi Robert, sorry for your trouble. This is actually fixed in the new version, which will be released sometime this weekend.
shaun
revolutionfrance: jquery doesn’t seem to be loading on that page. There may be a conflict. I can’t see where though. If only facebook-comments is enabled–that is, all other plugins disabled–do you still have the same problem?
niraj desai: your site is down right now.
shaun
Hi Sacatomato. An Application ID is different from your Facebook ID.
You can go here to get one https://developers.facebook.com/setup/.
You’ll also receive a secret key, which you’ll need if you’re using the current version of this plugin.It doesn’t matter what you call it, but make sure you put in the correct url for your site (e.g., example.com/blog).
When you have problems, it’s a good idea to check here.
Cheers
shaun
Start with just one, preferably the one with the exact code I posted. How many of them do you have?
For your second post, if the like box goes away when you comment out (<!– … –>) the script, then you’ll just need to add the script again to only the main page (probably index.php).
shaun
It’s likely to do with running it locally. You’ll probably also have problems with security certificates.
I’m not sure what the specific problem is in this case, as I don’t use xampp for local development. Perhaps it’s blocking the connection? Do you have all the mod_proxy stuff set up?
I’d try making a test file with a call to file_get_contents to see if the problem indeed is with polling an external server.
shaun
If you don’t have the same setup as melonie, you can add
<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>
right before
<?php get_sidebar(); ?>
in index.phpIt actually really doesn’t matter where you place the script in that file, but placing it low allows the page to load first, and not have to wait on the script.
Hi njy. Look here for a solution.
Basically, the facebook script is multiply loaded, causing that behavior.
What you need to do is edit your widget or php file, and change this,
<div class="textwidget"><script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="https://www.facebook.com/pages/Innoitem/182443701792210" width="250" show_faces="true" stream="false" header="true"></fb:like-box></div>
to this (commenting out the script),
<div class="textwidget"><!-- <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script> --><fb:like-box href="https://www.facebook.com/pages/Innoitem/182443701792210" width="250" show_faces="true" stream="false" header="true"></fb:like-box></div>
To get it back on the main page, edit your index.php file (here) and add
<script src="https://connect.facebook.net/en_US/all.js#xfbml=1">
right before the bottom (before</body>
, if present) and outside of any php tags (<?php ... ?>
).The reason it’s only showing up on posts is because the comment plugin isn’t loaded on the main page, thus the facebook script isn’t either.
If you still have problems, post the last twenty or so lines of your (modified) index.php file, and the first ten or so of your footer.php file.
shaun
hey shawn. post a link to your site, and I’ll take a look at it tonight. in which file did you comment out the script?
shaun
file_get_contents is disabled by most hosting companies since it is a security vulnerability when used in conjunction with user input. The development version of fbcomments fixes this. It can be downloaded from here and then installed manually via wp-admin (
https://www.fantasycouch.com/wp-admin/plugin-install.php?tab=upload
andhttps://www.gnomegames.com/wp-admin/plugin-install.php?tab=upload
).shaun
Are you sure you uploaded the changed file? If so, then try clearing all of wp-super-cache’s caches, because your server is still serving the old code.
shaun
It looks like your page has changed. Did you update any plugins?
In any case, it’s now here:
<div id=”text-2″ class=”widget”> <div class=”textwidget”><script src=”https://connect.facebook.net/en_US/all.js#xfbml=1″></script><fb:like-box href=”https://www.facebook.com/meloniemac?v=info” width=”250″ show_faces=”true” stream=”true” header=”false”></fb:like-box></div>
</div><div id=”text-3″ class=”widget”><h3>Advertisements</h3> <div class=”textwidget”><img src=’https://i248.photobucket.com/albums/gg179/MeloniesArt/ls_macad.jpg’> <img src=’https://i248.photobucket.com/albums/gg179/MeloniesArt/ad-1.jpg’>
<p>
<img src=’https://i248.photobucket.com/albums/gg179/MeloniesArt/ad-1.jpg’> <img src=’https://i248.photobucket.com/albums/gg179/MeloniesArt/ad-1.jpg’></div>
</div>All you need to do is surround the italic part with <!– –>, like so:
<!-- <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script> -->
It looks like it’s being loaded in either template-page-fullwidth.php or template-page-columns.php, or possibly both if you use fullwidth for some pages. So, check those.
If you can’t find it, do you use something like dreamweaver, bbedit/notepad++, etc. to edit? If you do, open all your php files in it and do a global search for ‘facebook.net’, then post the file names.
shaun
Hey melonie, in your footer.php file change this,
<!-- JS for Facebook Fanbox (with CSS Support) by H.-Peter Pfeufer [https://ppfeufer.de | https://blog.ppfeufer.de] --> <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script> <!-- END of JS for Facebook Fanbox (with CSS Support) -->
to this
<!-- JS for Facebook Fanbox (with CSS Support) by H.-Peter Pfeufer [https://ppfeufer.de | https://blog.ppfeufer.de] --> <!--<script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script>--> <!-- END of JS for Facebook Fanbox (with CSS Support) -->
Your fanbox should still work fine.