Hi,
You can use the below scrip to send thank you notes to your friends who wished for your birthday on your Facebook timeline.
Instructions:
#Get the Facebook access token:
| When we have any asynchronus code that tries to access the object patterns, we run into issues with javascript `this` issue. | |
| Ex: | |
| var harry = { 'name': 'harry', | |
| 'greet' : function(){console.log('Hello ' + this.name)}, | |
| 'print' : function(){ | |
| // using setTimeout, it can be any async function | |
| setTimeout(this.greet, 1000); // this will fail! | |
| } |
| /** | |
| * This is a script to solve Yahoo bingo problem through | |
| * websockets. http://yahoobingo.herokuapp.com/ | |
| * | |
| * @author harry_sistalam | |
| */ | |
| var YAHOO_BINGO_URL = 'ws://yahoobingo.herokuapp.com'; | |
| var user_obj = {name : 'harry_sistalam', | |
| email : '[email protected]', |
Hi,
You can use the below scrip to send thank you notes to your friends who wished for your birthday on your Facebook timeline.
Instructions:
#Get the Facebook access token:
| # these needs to be entered | |
| oath_token='' | |
| birth_date='' | |
| birth_day_messages = ["happy", "b'day","birthday", "bday"] | |
| from facepy import GraphAPI | |