Skip to content

Instantly share code, notes, and snippets.

@xenda
Created November 2, 2010 00:59
Show Gist options
  • Select an option

  • Save xenda/659134 to your computer and use it in GitHub Desktop.

Select an option

Save xenda/659134 to your computer and use it in GitHub Desktop.
require 'fbgraph'
client = FBGraph::Client.new(:client_id => 'client_id',:secret_id =>'secret_id')
photos = client.selection.me.photos.until(Time.now.to_s).since(3.days.ago).limit(10).info
client.selection.post('id').comments.params(:message => 'Hola').publish!
@friends = client.selection.me.friends.info!
@friends[:data].each do |friend|
#
end
client.selection.user(current_account.fb_id).feed.publish!
(:message => "Mi mensaje , :name =>"El nombre",:link=>"Un link",:description=>"Una description", :picture => "unaimagen.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment