Uploaded source code and demos for our ray casting tutorials to GitHub (https://github.com/permadi-com/ray-cast#ray-casting-tutorial-demos). Ray casting is a popular graphic rendering techniques in the 90s, used to render semi-3D worlds in many games.  These repository contain demos for the ray-casting tutorials at permadi.com. https://permadi.com/1996/05/ray-casting-tutorial-table-of-contents/ Read through the tutorial to learn the concept behind ray casting, then […]

This tutorial builds upon the previous tutorial at /2010/10/html5-saving-canvas-image-data-using-php-and-ajax, with additional explanation on how to pass parameters along with the canvas data. We will demonstrate methods of saving the content of a HTML5 Canvas object using server side scripting. PHP will be used in this example, but the technique can be applied in other languages as […]

This guide walks you through in getting the Facebook Credits Sample running in test mode. 1. Download the official sample code from: https://github.com/facebook/credits-api-sample 2. Read the overview. 3. Copy the files into your server into a subfolder (your server must support PHP): – callback.php – index.php – xdreceiver.html 4. Create a test application. Fill out […]

It is quite annoying for us developers that getting the numeric user id when that user has a vanity URL. Granted that for user’s that hasn’t set their own (vanity) URL names, this is easy, just login and see the URL bar, which will be something like https://www.facebook.com/profile.php?id=NUMERIC_ID. But for user that has vanity URL, […]

Glossy Icons Creator
August 13, 2011

Convert your icons into glossy version, instantly! Javascript must be enabled in your browser to use this tool. Please upload one image only at a time, JPG, PNG and GIF are supported. For best result, use square images. To save the result, right-click on the image and do “Save As” (rename the php extension with […]

If you have read my previous post about this subject here, then consider this a bug-fix or an update. Posting to user’s wall is easy enough but what about if you want an application to post, say user accomplishment (such as High Scores or user achievements) onto the application page? The process is actually straightforward. […]

 NOTE: This method appears to be broken at this time (7/28/2011). I don’t know if and what has changed on the Facebook side, it just stopped working. Will update this post if it works again. UPDATE (8/9/2011): The method has slightly changed but works again now. Please see this post for the update. Posting to […]

As explained in the previous article, you can post to user walls with or without dialog. Which method to use depends on your need. If you want user to enter a message, then you need the dialog. At other times, you might want predefined messages so why bother prompting the user? (Note that Facebook has […]

As mentioned in the previous post (https://www.permadi.com/blog/2011/04/javascript-facebook-graph-api-posting-to-walls/), you can post feed with or without a dialog with the main difference being the obvious one that user cannot edit the message being posted without a dialog. By the way, Facebook has some policies of what kind of message you can put in the message field, read […]

Examples Here are examples of posting to Facebook well feed using the Javascript Graph API: https://www.permadi.com/tutorial/facebook-js-graph-api-post-to-wall/index.html There are two examples there, one using the FB.ui (to show dialog) and the other using FB.api.  The difference is that the FB.api method does not display any user-interface (dialog), so this is best used for canned messages. Code […]

1 2 3 4