Skip to content

Instantly share code, notes, and snippets.

@cgallagher
Created May 3, 2012 11:45
Show Gist options
  • Save cgallagher/2585157 to your computer and use it in GitHub Desktop.
Save cgallagher/2585157 to your computer and use it in GitHub Desktop.
Basic FB Action
class Fbaction < ActiveRecord::Base
class << self
def publish!(fbid)
url = url + "/#{entry.id}"
params = { "<object_ref_here>" => url,
:access_token => access_token
}
res = Bookface::Graph.request("#{fbid}/<namespace_here>:<action_name_here>", params, :method => :post)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment