Module: FbGraph::Connections::Likes::Likable

Included in:
Album, FbGraph::Checkin, FbGraph::Comment, Link, Note, OpenGraph::Action, Photo, Post, Status, UserAchievement, Video
Defined in:
lib/fb_graph/connections/likes.rb

Instance Method Summary collapse

Instance Method Details

#like!(options = {}) ⇒ Object



23
24
25
# File 'lib/fb_graph/connections/likes.rb', line 23

def like!(options = {})
  post(options.merge(:connection => :likes))
end

#unlike!(options = {}) ⇒ Object



27
28
29
# File 'lib/fb_graph/connections/likes.rb', line 27

def unlike!(options = {})
  destroy(options.merge(:connection => :likes))
end