Difference between revisions of "Widget:Improved Facebook Comments"

From eagle-rock.org
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>__NOTOC__
 
<noinclude>__NOTOC__
This widget allows you to add the '''[http://developers.facebook.com/docs/reference/plugins/comments/ Improved Facebook Comments]''' widget to your wiki page.
+
This widget allows you to add '''[http://developers.facebook.com/docs/reference/plugins/comments/ Improved Facebook Comments]''' widget to your wiki page.
 
 
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
 
 
 
Improved by [http://www.wickedcleverdesigns.com Saill White]
 
 
 
== Using this widget ==
 
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Facebook_Comments widget description page on MediaWikiWidgets.org].
 
  
 
== Copy to your site ==
 
== Copy to your site ==
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
+
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.
 
</noinclude><includeonly><!--{counter assign="fbAPIdivID" name="fbAPIdivID"}--><!--{if $fbAPIdivID eq 1}--><div id="fb-root"></div>
 
</noinclude><includeonly><!--{counter assign="fbAPIdivID" name="fbAPIdivID"}--><!--{if $fbAPIdivID eq 1}--><div id="fb-root"></div>
 
<script>
 
<script>
 
   window.fbAsyncInit = function() {
 
   window.fbAsyncInit = function() {
 
     FB.init({
 
     FB.init({
       appId      : '$appID', // App ID
+
       appId      : '<!--{$appID|escape:'urlpathinfo'}-->', // App ID
 
       channelUrl : '//eagle-rock.org/channel.html', // Channel File
 
       channelUrl : '//eagle-rock.org/channel.html', // Channel File
 
       status    : true, // check login status
 
       status    : true, // check login status
Line 21: Line 14:
 
       xfbml      : true  // parse XFBML
 
       xfbml      : true  // parse XFBML
 
     });
 
     });
 
 
   };
 
   };
 
 
   (function(d){
 
   (function(d){
 
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
 
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
Line 30: Line 21:
 
     js.src = "//connect.facebook.net/en_US/all.js";
 
     js.src = "//connect.facebook.net/en_US/all.js";
 
     ref.parentNode.insertBefore(js, ref);
 
     ref.parentNode.insertBefore(js, ref);
   }(document));
+
   }(document));</script><!--{/if}--><div class="fb-comments" data-href="<!--{$url|escape:'html'}-->" data-num-posts="<!--{$num|escape:'html'|default:5}-->" data-width="<!--{$width|escape:'html'|default:470}-->"<!--{if isset($dark)}--> data-colorscheme="dark"<!--{/if}-->></div></includeonly>
 
 
</script><!--{/if}--><div class="fb-comments" data-href="<!--{$url|escape:'html'}-->" data-num-posts="<!--{$num|escape:'html'|default:5}-->" data-width="<!--{$width|escape:'html'|default:470}-->"<!--{if isset($dark)}--> data-colorscheme="dark"<!--{/if}-->></div></includeonly>
 

Latest revision as of 09:39, 25 May 2020

This widget allows you to add Improved Facebook Comments widget to your wiki page.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy the full source code of this page to your wiki as page Widget:Improved Facebook Comments.