nsanta / fbgraph

Facebook Open Graph API in Ruby
MIT License
324 stars 40 forks source link

Delete a comment #6

Closed thb closed 14 years ago

thb commented 14 years ago

Hi, Is it possible to delete a comment with fbgraph?

nsanta commented 14 years ago

Yes. Using the gem version you can delete the comment in this way:

client.selection.find(comment_id).delete!

I will add comment method on selection. Thanks

nsanta commented 14 years ago

you can delete the comment using the branch master using the comment method instead of find.

client.selection.comment(comment_id).delete!

nsanta commented 14 years ago

closed

thb commented 14 years ago

Ok, that what I had done on my system as a monkey patch. Thanks!