Where is FaceBook’s REST client located and how do I access it?
Facebook’s REST server is accessible through the restserver.php file. You can either access the old facebook server or the new. I’m not sure why you would want to access the old server but for kicks I will show you both URL’s you can get responses from.
New REST Server:
http://api.new.facebook.com/restserver.php
Both url’s you will set in your init function that sets your server url to ping. Once you ping this url, you can make any GET or POST request you wish.
Example init server url line:
<cfargument name=”server” type=”string” required=”no” default=”http://api.new.facebook.com/restserver.php” />
<cfscript>
variables._server = arguments.server;
return this;
</cfscript>
you can see we just default the argument to the new server and set it to variables._server that we can use throughout the rest of our cfc.
(please download my example application to understand what I’m referring to)