I have some problem to setup application on facebook, ok what is exactly problems?
Im load script
<script src="http://connect.facebook.net/en_US/all.js"></script>
And this
$(document).ready(function () {
// Pocetak callbacks funkicja
$("#oceni_fbPrijatelje").click(function() {
$("#sidecenter ,#sidedesno,#sidelevo").addClass("fb_over");
FB.init({
appId : 'xxxxxxxxx959971',
});
// 1. User se loguje i uzimamo neke informacija sa FB-a
FB.login(function(response) {
if(response.authResponse) {
accessToken = response.authResponse.accessToken;
signedRequest = response.authResponse.signedRequest;
// 2. Uzimamo informacija za logovane usere
FB.api('/me', function(response) {
facebook_id = response.id;
$.cookie("facebook_id", facebook_id);
// 3. Konacno iskace jebeni popup
FB.ui({
method: 'apprequests',
message: response.name + ' želi da vidi tvoje fotke na xxxxx.',
max_recipients: 10,
exclude_ids: [], // ovo nisam siguran dal radi :( ako radi dobro je.
title: 'Izaberi prijatelje i pozovi na xxxxx' ,
}, requestCallback);
} );
function requestCallback(response) {
// Handle callback here
$("#sidecenter ,#sidedesno,#sidelevo").removeClass("fb_over");
}
}
});
});
});
And popup is loaded fine on my site

So users can send invite to friends from my site on facebook.. but when users receive request on facebook simple this notification always is appers on their profil, you can click accept and facebook redirect to app url but request is still there simple cant accept this..

In the app option on facebook im setup
Canvas URL: http://mysite.com
So application will load my home page , but all works very strange and dont know why Application request always is stay on users profil…
You need to delete those requests.
According to Facebook:
When someone accept an invite he goes to app and the request id is added to the url. You can catch it from there and send a delete request.
You can find the full code and more information on deleting requests here:
http://developers.facebook.com/docs/requests/#deleting