Sha256: 1bda65f168b3cfeeecf0bdb4ebc2e13f22b4e0634fcd53ce5a5569757e8c7178

Contents?: true

Size: 725 Bytes

Versions: 138

Compression:

Stored size: 725 Bytes

Contents

module Facebooker
  class ServerCache
    def initialize(session)
      @session = session
    end
    
    # 
    # Stores an FBML reference on the server for use 
    # across multiple users in FBML
    def set_ref_handle(handle_name, fbml_source)
      (@session.post 'facebook.fbml.setRefHandle', {:handle => handle_name, :fbml => fbml_source},false) == '1'
    end
    
    ##
    # Fetches and re-caches the content stored at the given URL, for use in a fb:ref FBML tag.
    def refresh_ref_url(url)
      (@session.post 'facebook.fbml.refreshRefUrl', {:url => url},false) == '1'
    end
    
    def refresh_img_src(url)
      (@session.post 'facebook.fbml.refreshImgSrc', {:url => url},false) == '1'
    end
  end
end

Version data entries

138 entries across 138 versions & 31 rubygems

Version Path
al-facebooker-1.0.12.1 lib/facebooker/server_cache.rb
al-facebooker-1.0.12 lib/facebooker/server_cache.rb
al-facebooker-1.0.9 lib/facebooker/server_cache.rb
corey-facebooker-1.0.28.1 lib/facebooker/server_cache.rb
cwninja-facebooker-1.0.8 lib/facebooker/server_cache.rb
djanowski-facebooker-1.0.1 lib/facebooker/server_cache.rb
djanowski-facebooker-1.0.10 lib/facebooker/server_cache.rb
djanowski-facebooker-1.0.11 lib/facebooker/server_cache.rb
djanowski-facebooker-1.0.12 lib/facebooker/server_cache.rb
djanowski-facebooker-1.0.2 lib/facebooker/server_cache.rb
djanowski-facebooker-1.0.4 lib/facebooker/server_cache.rb
djanowski-facebooker-1.0.7 lib/facebooker/server_cache.rb
djanowski-mmangino-facebooker-1.0.4 lib/facebooker/server_cache.rb
fs-facebooker-1.0.37 lib/facebooker/server_cache.rb
hashrocket-clearance-0.4.0 test/rails_root/vendor/plugins/facebooker/lib/facebooker/server_cache.rb
hashrocket-clearance-0.4.1 test/rails_root/vendor/plugins/facebooker/lib/facebooker/server_cache.rb
hashrocket-clearance-0.4.2 test/rails_root/vendor/plugins/facebooker/lib/facebooker/server_cache.rb
hashrocket-clearance-0.4.3 test/rails_root/vendor/plugins/facebooker/lib/facebooker/server_cache.rb
mborromeo-facebooker-1.0.28 lib/facebooker/server_cache.rb
mborromeo-facebooker-1.0.29 lib/facebooker/server_cache.rb