Happy Birthday

Reading time ~1 minute

Grew up +1 in numbers yesterday. Had a super awesome day. But this post is not about that. Few Months back, while browsing through quora/reddit I came across a thread that had the implementation of automatic replying to a birthday post on facebook. I tried to implement the same using facebook’s graph api’s.

First you need to get a token for your app to work from here. Add this token in the code ( it expires every 1 hour, so make sure the token is fresh). Second you need the epoch time of your Birthdate ie: [15-09-2015 = 1442275200] from any online epoch converter.

Then run this python script the next day. It auto replies and comments on each of the post from previous day. Mine took 30 minutes to reply to all the posts. Had to change some replies though :P.

Code.

You can download the code from here.

Autoreply in action.

Reuse and Happy Hacking :)

2019 Book List

The books I read in 2019.**In Progess**- Sapiens - _Yuval Noah_- My Experiments with truth - _Mahatma Gandhi_- Can't Hurt me - _David Gog...… Continue reading

Wisdom Gathered in 2018

Published on December 21, 2018

Heritage City Ahmedabad

Published on November 16, 2018