Reputation: 30885
I have a FaceBook app in which I use the apprequests
API to invite friends to my app. Now, when the user receives my invitation, they're redirected to the first page in my app.
How can I redirect them to a specific page in my app?
This is what my apprequests
looks like:
function newInvite(){
var msg = document.getElementById('msg_look_id').value;
var receiverUserIds = FB.ui({
method : 'apprequests',
message: msg,
title: "Select friends to send ",
}, function(response) {
alert("IDS : " + response.request_ids);
});
}
Upvotes: 0
Views: 446
Reputation: 31860
when a user comes to your app, you get their FacebookId, correct? When a user comes, check your database for that ID and if it is not there, add it and then redirect them to the page you want to show "new" users. If they're already in your database, then leave them on your normal home page.
Upvotes: 1