Class Facebooker::ServerCache
In: lib/facebooker/server_cache.rb
Parent: Object

Methods

Public Class methods

[Source]

# File lib/facebooker/server_cache.rb, line 3
    def initialize(session)
      @session = session
    end

Public Instance methods

[Source]

# File lib/facebooker/server_cache.rb, line 20
    def refresh_img_src(url)
      (@session.post 'facebook.fbml.refreshImgSrc', {:url => url},false) == '1'
    end

Fetches and re-caches the content stored at the given URL, for use in a fb:ref FBML tag.

[Source]

# File lib/facebooker/server_cache.rb, line 16
    def refresh_ref_url(url)
      (@session.post 'facebook.fbml.refreshRefUrl', {:url => url},false) == '1'
    end

Stores an FBML reference on the server for use across multiple users in FBML

[Source]

# File lib/facebooker/server_cache.rb, line 10
    def set_ref_handle(handle_name, fbml_source)
      (@session.post 'facebook.fbml.setRefHandle', {:handle => handle_name, :fbml => fbml_source},false) == '1'
    end

[Validate]