This is another piece of Facebook code examples. Since their documentation is a horrendous mess, I feel like the more examples of different stuff is on the web, the better.
This example is for the "Old" REST API php module, which seems to be way more powerful than the new one.
Their
Create Application API is a relatively new addition that lets
(
Read more... )