Extension talk:FacebookComments

From MediaWiki.org
Jump to navigation Jump to search

1.1.2 Can't moderate comments through app[edit]

Hi, thanks for the extension. I've added my app ID in localsettings.php, and I can see the app ID in the html, like this:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1&appId=123456789012345">

But any comments made don't appear under the FB comment moderation tab https://developers.facebook.com/tools/comments?id=123456789012345, so I can't view or delete any offensive comments.

Am I doing something wrong? Any help or suggestions appreciated.

Ralpharama 12:30, 22 September 2014 (GMT)

SOLUTION Install the open graph extension at this location https://www.mediawiki.org/wiki/Extension:OpenGraphMeta. and give the appid in the opengraph parameters and it should work.

=> Can't understand the meaning of giving the appid in the opengraph parameters at this soluion. Could you give me more additional exexplanation? Thanks.

1.19.1 my wiki does not work any longer[edit]

When I implement this on mediawiki 1.19.1 my wiki does not work any longer, all it shows is a blank page then. The reason is that this extension never gets past the lines

               if( $mediaWiki->getAction() != 'view' ) return true;
               if( $skin->getTitle()->getNamespace() != 0) return true;

Can you please help? --ThorstenStaerk (talk) 06:54, 26 August 2012 (UTC)

Did you set your LocalSettings.php file? Compare this and this. I guess you should set your LocalSettings.php to use the Extensions. (Installation section) --Jmkim dot com (talk) 08:43, 26 August 2012 (UTC)
works. I did not extract it to extensions/FaceBookComments but to ./FaceBookComments. Thanks, see www.staerk.de/thorsten --95.113.223.109 18:56, 5 September 2012 (UTC)

disabling display on main_page[edit]

Add the following rule to MediaWiki:Common.css: body.page-Main_Page .fb_iframe_widget span {display:none!important;} --Recipewiki (talk) 13:36, 2 May 2013 (UTC)

Or just add the following line to FacebookComments.class.php:

// ...
if( isset($_REQUEST['redirect']) ) return true;
if( $mediaWiki->getAction() != 'view' ) return true;
if( !$title->exists() ) return true;
if( $title->getNamespace() != 0) return true;
if( $title->isMainPage() ) return true; // <--- Skip FB comments for the main page
// ...

--Delusive

Apply to specific articles[edit]

Would you mind providing a option that would allow administrators apply Extension:FacebookComments only to specific articles?

Perhaps only pages tagged with...

<fbcomments />

...or something similar?

Davydog (talk) 23:27, 5 March 2013 (UTC)

Integration with Mobilefrontend[edit]

The extension does not appear on the mobile version, using Mobilefrontend ... Is there a way to get it working?

Fix for scripts[edit]

Scripts like rebuildFileCache.php may not work with this extension currently. To fix that apply the following patch

+if( isset($mediaWiki) ) {

   if( $mediaWiki->getAction() != 'view' ) return true;

+}

Where the '+' indicates the lines to be added. --Nischayn22 (talk) 18:58, 19 July 2014 (UTC)

FB comment extension[edit]

Hello all,

plz help me , the FB comment extension its no longer work properly so now its publish the comment on Wiki but not published in FB. So what is the problem? plz help. --81.111.57.124 20:58, 2 November 2014 (UTC)
SOLUTION
Install the open graph extension at this location https://www.mediawiki.org/wiki/Extension:OpenGraphMeta. and give the appid in the opengraph parameters and it should work.

For app-id to work[edit]

Install the open graph extension at this location https://www.mediawiki.org/wiki/Extension:OpenGraphMeta. and give the appid in the opengraph parameters and it should work.

Is this still supposed to be working? Not showing up on pages. (FIXED!)[edit]

Showing up in Version, I also installed OpenGraphMeta which is also showing up in Version.

I messed with the source code to note if its getting to the end of the routine, and it seems to be getting to the very end and creating the full html code, but for whatever reason on addHTML() it's just not getting to where it needs to. Please help!

Mediawiki version 1.30.


Problem is multiple things, first off it's pointing to a http script but its gotta be https or chrome will block it.

Secondly the logic seems to not work with the newer versions of mediawiki I don't think you're supposed to use addHTML, so I switched the hook from AfterScripts (which is run after the footer), and switched it to aftercontent. which requires from $skin, &$text to &$data, $skin, and it sets the data. Seems to work now. Thank you for the extension!