Friday, April 17, 2009
On the day of my birthday, I launched beta of the application which I've been working on for quite some time now. I call it
willowisph. The application was developed using Python, Django, App Engine, jQuery, Facebook Platform and Yahoo Boss.
Please submit your comments/suggestions using the "Contact Developer" section on facebook or email me at
reyjexter@gmail.com. If you want, you can also add me as one of your FB contacts. Thanks
Saturday, March 28, 2009
Here's a snippet to ask the user whether to allow the application to post status updates on their wall.
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">
FB_RequireFeatures(["XFBML", "Api", "Connect"], function() {
FB.init("YOUR_API_KEY", "/fb/xd_receiver.htm");
var api = FB.Facebook.apiClient;
api.requireLogin(function(exception) {
FB.Connect.showPermissionDialog('status_update', function(result) {
// do something with the result.
// i stored it on my own database so i don't need to query it from facebook
});
// reposition the dialog box
var el = $('#RES_ID_fb_pop_dialog_table');
if(el) {
el.css('top', '100px');
}
});
});
</script>
The code above can be used in conjunction with FB.ApiClient.Users hasAppPermission to check if the user already allowed the permission or roll-out your own logic.
Place the code after the BODY tag
Wednesday, March 11, 2009
Thanks to my honey, I ran into an article about never quiting in order to succeed no matter how many times you failed. The article was mentioned in a book titled "Being Happy" by Andrew Matthews.
The story was about Abraham Lincoln's failures before being elected as an American president and being held as one of the most remembered president in American history.
List of Lincoln's failures
A common list of the failures of Abraham Lincoln (along with a few successes) is:
- 1831 - Lost his job
- 1832 - Defeated in run for Illinois State Legislature
- 1833 - Failed in business
- 1834 - Elected to Illinois State Legislature (success)
- 1835 - Sweetheart died
- 1836 - Had nervous breakdown
- 1838 - Defeated in run for Illinois House Speaker
- 1843 - Defeated in run for nomination for U.S. Congress
- 1846 - Elected to Congress (success)
- 1848 - Lost re-nomination
- 1849 - Rejected for land officer position
- 1854 - Defeated in run for U.S. Senate
- 1856 - Defeated in run for nomination for Vice President
- 1858 - Again defeated in run for U.S. Senate
- 1860 - Elected President (success)
Friday, February 13, 2009
I encountered the problem while my facebook application tries to login or authenticate with my app engine application. The canvas infinitely redirects to itself.
The problem was apparently caused by using redirect on callback page. When facebook tries to access http://mydomain.com/, I redirect it to http://mydomain.com/home but since redirecting clears the request parameter and attributes, no parameter will be passed to "/home" page.
The solution was to use forward instead of redirect.
Friday, January 16, 2009
Good article to read:
http://www.satisfice.com/blog/archives/27