Sha256: ae6d1d0e338d6b5d13caf161f42ee38c3b20ad097696d7c375b5025ff4eeb8c5

Contents?: true

Size: 1.07 KB

Versions: 30

Compression:

Stored size: 1.07 KB

Contents

class Livetext::Functions

  def facebook_init
    fb_appid = _var("facebook.appid")
    xfbml    = _var("facebook.xfbml")
    ver      = _var("facebook.version")
    width    = _var("facebook.width")
    share    = _var("facebook.share")
    faces    = _var("facebook.faces")
    <<~HTML
        window.fbAsyncInit = function() {
          FB.init({
            appId      : '#{fb_appid}',
            xfbml      : #{xfbml},
            version    : '#{ver}'
          });
        };
    HTML
  end

=begin
<!-- Needed: 
  <meta property='fb:admins' content='$facebook.admins'/> 
  <meta property='og:url' content='http://rubyhacker.com/blog2/#{slug}.html'/>
  <meta property='og:type' content='article'/>
  <meta property='og:title' content='#{title}'/>
  <meta property='og:image' content='http://rubyhacker.com/blog2/blog3b.gif'/>
  <meta property='og:description' content='#{teaser}'/>
-->
=end

  def facebook_likes
    <<~HTML
      <div class='fb-like'
           data-share='#{share}'
           data-width='#{width}'
           data-show-faces='#{faces}'>
      </div>
    HTML
  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
runeblog-0.3.28 empty_view/config/facebook/facebook.rb
runeblog-0.3.27 empty_view/config/facebook/facebook.rb
runeblog-0.3.26 empty_view/config/facebook/facebook.rb
runeblog-0.3.25 empty_view/config/facebook/facebook.rb
runeblog-0.3.24 empty_view/config/facebook/facebook.rb
runeblog-0.3.23 empty_view/config/facebook/facebook.rb
runeblog-0.3.22 empty_view/config/facebook/facebook.rb
runeblog-0.3.21 empty_view/config/facebook/facebook.rb
runeblog-0.3.20 empty_view/config/facebook/facebook.rb
runeblog-0.3.19 empty_view/config/facebook/facebook.rb
runeblog-0.3.18 empty_view/config/facebook/facebook.rb
runeblog-0.3.17 empty_view/config/facebook/facebook.rb
runeblog-0.3.16 empty_view/config/facebook/facebook.rb
runeblog-0.3.15 empty_view/config/facebook/facebook.rb
runeblog-0.3.14 empty_view/config/facebook/facebook.rb
runeblog-0.3.13 empty_view/config/facebook/facebook.rb
runeblog-0.3.12 empty_view/config/facebook/facebook.rb
runeblog-0.3.11 empty_view/config/facebook/facebook.rb
runeblog-0.3.10 empty_view/config/facebook/facebook.rb
runeblog-0.3.08 empty_view/config/facebook/facebook.rb