First, sorry for my bad English.
I've an app which is installed on multiple fanpages.
I want an apprequest dialog in this app. When the user click on invite button he sees an apprequest dialog to invite friends but the notificacion redirect to the canvas page not to app on fan page.
I use this code:
<head>
<title>Request Example</title>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<p>
<input type="button"
onclick="sendRequestViaMultiFriendSelector(); return false;"
value="Send Request to Many Users with MFS"
/>
</p>
<script>
FB.init({
appId : '123456789',
status : true,
cookie : true,
oauth: true
});
function sendRequestViaMultiFriendSelector() {
FB.ui({method: 'apprequests',
message: 'Example message',
show_error: true,
redirect_uri: 'https://www.facebook.com/pages/PAGE_ID?sk=APP_ID'
}, requestCallback);
}
function requestCallback(response) {
// Handle callback here
}
</script>
</body>
What am I doing wrong? Configuration of Canvas Page? Redirect Uri?
Thanks!