hi I am using following code to pop up Facebook application request dialog in my rails application.
$('#app_request').live("click", function () {
FB.ui({
method: 'apprequests',
message: 'You should learn more about this awesome game.',
data: 'tracking information for the user'
});
});
but I am getting the error as FB is not defined
what should I do to correct it. I am new to rail development & FB applications.
please guide me.
Thank You.
You need to load and initialise the Facebook JavaScript SDK – for example: