Method: Facebooker::Session#add_tags
- Defined in:
- lib/facebooker/session.rb
#add_tags(pid, x, y, tag_uid = nil, tag_text = nil) ⇒ Object
334 335 336 337 338 339 |
# File 'lib/facebooker/session.rb', line 334 def (pid, x, y, tag_uid = nil, tag_text = nil ) if [tag_uid, tag_text].all? {|arg| arg.nil?} raise ArgumentError, "Must enter a name or string for this tag" end @tags = post('facebook.photos.addTag', :pid => pid, :tag_uid => tag_uid, :tag_text => tag_text, :x => x, :y => y ) end |