Archive for November 2009
How to send message from a facebook application
Just make url in the following format. If this is clicked a popup window will be openedĀ with message title XXXXX and message text XXXXX
http://www.facebook.com/message.php?id=<USER ID>&subject=XXXXX&msg=XXXXX
Tutorials and Resources for Facebook Application Developers
Facebook Applications: Tutorials to get Started
- Creating a Platform Application – This guide shows you how to configure the settings and integration points for a Facebook Platform application and configure your host server.
- Getting Started – Official page
- How to Guides
Facebook Documentation
Facebook Applications: Source Code and open Source Projects
Tips and Trics
Facebook developer Tools
Face Book Examples
PHP MySQL Tutorials
Basic Tutorials
Simple Select Choice and JavaScript Handler
<html>
<body>
<script type="text/javascript">
//<![CDATA[
function selectClicked() {
name = document.getElementById('choice1').value;
alert('Clicked value='+name);
}
//]]>
</script>
<form name=form>
<select id="choice1" name="choice1" onchange="selectClicked();">
<option value="val0" selected>slected</option>
<option value="val1">Land</option>
<option value="val2">Sea</option>
<option value="val3">Air</option>
</select>
</td><td>
</form>
</body>
<html>
Sample Code: Simple Form Processing in PHP
<?php
if(isset($_POST['submit'])){
echo $_POST['name'];
}else{
?>
<html>
<body>
<form method="post" action="">
<input name="name" id="name" type="text" />
<input name="submit" id="submit" value="Add Me" type="submit" />
</form>
</body>
</html>
<?php
}
?>
Merge 2 Binary Search Trees
Write a program to mergeĀ two binary search trees, in O(n) time with O(1) space
Least Common Ancestor in a Tree with only Parent pointers
Given a tree with only children pointing to the parents, find the least common ancestor of 2 nodes.
Find a cycle in a linked list
How would you find a cycle in a linked list? Optimize for speed.
Multiplying with out Multiplication
Multiple by 8 without using multiplication or addition. Now do the same with 7