{"id":16326460,"url":"https://github.com/mudassir0909/fbwish","last_synced_at":"2025-04-09T13:31:46.322Z","repository":{"id":20994248,"uuid":"24283809","full_name":"mudassir0909/fbwish","owner":"mudassir0909","description":"Ruby Gem to automate facebook like \u0026 comment on the birthday wishes using Graph API.","archived":false,"fork":false,"pushed_at":"2015-08-20T17:31:59.000Z","size":204,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T06:54:42.331Z","etag":null,"topics":["birthday-wishes","facebook","facebook-bot","ruby","rubygems"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mudassir0909.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-21T06:16:44.000Z","updated_at":"2017-03-30T13:39:47.000Z","dependencies_parsed_at":"2022-07-31T05:18:00.659Z","dependency_job_id":null,"html_url":"https://github.com/mudassir0909/fbwish","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudassir0909%2Ffbwish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudassir0909%2Ffbwish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudassir0909%2Ffbwish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mudassir0909%2Ffbwish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mudassir0909","download_url":"https://codeload.github.com/mudassir0909/fbwish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248049278,"owners_count":21039196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["birthday-wishes","facebook","facebook-bot","ruby","rubygems"],"created_at":"2024-10-10T23:08:26.557Z","updated_at":"2025-04-09T13:31:46.002Z","avatar_url":"https://github.com/mudassir0909.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fbwish [![fbwish API Documentation](https://www.omniref.com/ruby/gems/fbwish.png)](https://www.omniref.com/ruby/gems/fbwish)\n[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/mudassir0909/fbwish?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nRuby Gem to automate facebook like \u0026amp; comment on the birthday wishes using Graph API.\n\nIf you have alot of friends in your facebook network \u0026 when they wish you on your birthday, it's pretty cumbersome to reply to each one of them. This gem helps you in automating your replies by liking \u0026 commenting on those wishes using facebook's graph API (powered by ruby gem [koala](https://github.com/arsduo/koala)).\n\n## Installation (Make sure you have [Ruby](https://www.ruby-lang.org/en/installation/) installed)\n\nAdd this line to your application's Gemfile:\n\n    gem 'fbwish'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fbwish\n\n## Usage\n\n#### Getting your facebook access token\n\n1. Goto [Graph API Explorer](https://developers.facebook.com/tools/explorer)\n2. Click `Get Access Token`\n3. Make sure only `publish_actions` \u0026 `read_stream` is checked under **Extended Permissions** tab. Also nothing should be checked under **User Data Permissions** tab.\n4. Click `Get Access Token` button.\n5. Allow access when a popup is displayed.\n6. Copy the generated access token.\n\n#### Final step\nOpen ruby's interactive terminal using the following command\n\n    $ irb\n\nOnce you are into the terminal run the following commands, with appropriate configuration\n```ruby\nrequire('fbwish')\nwisher = Fbwish::Wisher.new({\n    # A valid ruby regular expression based on the wishes you've received.\n    matcher: /(happy)|(birthday)|(b[\\']?day)|(B[\\']?DAY)|(hbd)/i,\n    # Set of replies that you'd like to wish\n    replies: [\"Thank you :D\", \"Thanks :D\", \"Thx a lot :-)\", \"Hey, thx !!! :-)\",\"Thnk U !!!\", \"Hey Thanks ! :D \"],\n    access_token: \"PASTE YOUR ACCESS TOKEN HERE\",\n    # Number of people who wished you on your birthday, you'll know this\n    # on your timeline when facebook says \"foo, bar \u0026 254 others wished you\"\n    wish_count: 256,\n    # Optional attribute, false by default.\n    # If true, it logs the replies\n    verbose: true\n})\nwisher.wish_em_all! # Sit back \u0026 relax ;-)\n```\n\n### Advanced stuff\nSometimes people wish you in multiple languages \u0026 you might want to reply back in the same language. In that case you might want to namespace corresponding `matcher` \u0026 `replies` as follows:\n```ruby\nrequire('fbwish')\nwisher = Fbwish::Wisher.new({\n    matcher: {\n        # regex to match english wishes\n        en:  /(happy)|(birthday)|(b[\\']?day)|(B[\\']?DAY)|(hbd)/i,\n        # regex to match tamil wishes (or your own language )\n        tam: /(iniya)|(inya)|(இனிய)|(பிறந்தநாள்)|(வாழ்த்துக்கள்)/i\n    },\n    replies: {\n        # namespace with the same key i.e. \"en\"\n        en: [\"Thank you :D\", \"Thanks :D\", \"Thx a lot :-)\"],\n        tam: [\"நன்றி !!! :D\"]\n    },\n    access_token: \"PASTE YOUR ACCESS TOKEN HERE\",\n    wish_count: 256,\n    verbose: true\n})\nwisher.wish_em_all!\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/mudassir0909/fbwish/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n=======\nfbwish\n======\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudassir0909%2Ffbwish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmudassir0909%2Ffbwish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmudassir0909%2Ffbwish/lists"}