Created
March 26, 2014 18:48
-
-
Save mntdamania/9790528 to your computer and use it in GitHub Desktop.
This script likes and comments on posts posted by your friends. Could be useful while replying for birthday wishes :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "koala" | |
@graph = Koala::Facebook::API.new("fb_app_token") | |
feed = @graph.get_connections("me", "feed") | |
feed.each do |f| | |
@graph.put_like(f["id"]) # like wall post | |
@graph.put_comment(f["id"], "Thanks a lot :)") # comment on wall post | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment