Module: FbGraph2::Edge::Tags
- Included in:
- Photo
- Defined in:
- lib/fb_graph2/edge/tags.rb
Instance Method Summary collapse
-
#tag!(params = {}) ⇒ Object
NOTE: available both for create & update.
- #tags(params = {}) ⇒ Object
Instance Method Details
#tag!(params = {}) ⇒ Object
NOTE: available both for create & update
12 13 14 |
# File 'lib/fb_graph2/edge/tags.rb', line 12 def tag!(params = {}) self.post params, edge: :tags end |
#tags(params = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/fb_graph2/edge/tags.rb', line 4 def (params = {}) users = self.edge :tags, params users.collect! do |user| User.new(user[:id], user).authenticate self.access_token end end |