How to send Facebook application request
In this tutorial we are going to show You how to write functions that are going to communicate with Facebook through API to send facebook application request. First function is going to display invite friends dialog and the second one is going to display dialog which is used to publish scores to players timeline.
Next You need to initialize API by calling FB.init method:
API is initialized and ready to use. Our next function is going do display invite friends dialog
Next function is going to display a dialog which is used to publish game results to players wall.
You can use those functions like in the following examples in Your application code.
Our sample game code the ‘ITC Click Challenge’ where we use those functions can be downloaded from here.