diff --git a/lib/fb_graph2/edge/roles.rb b/lib/fb_graph2/edge/roles.rb index 84d1dce..3dbc3c2 100644 --- a/lib/fb_graph2/edge/roles.rb +++ b/lib/fb_graph2/edge/roles.rb @@ -8,6 +8,18 @@ module FbGraph2 Struct::Role.new role end end + + def role!(user, params = {}) + self.post params.merge( + user: Util.as_identifier(user) + ), edge: :roles + end + + def unrole!(user, params = {}) + self.post params.merge( + user: Util.as_identifier(user) + ), edge: :roles + end end module PageContext