Request should look like that:
FB.api(
'/707089732635823/invited',
'POST',
{
access_token: FB.getAccessToken(),
users: '100007028615075'
},
function(response) {
console.log(response);
}
)
문제
After i invite friend via app (JS api) they don't have any way to accept invitation (they don't have notifications, or notification disappear directly on hover). So they are being invited, but don't even know about that.
Here is how i invite friend to event:
FB.api('/EVENT_ID/invited?users=USER_ID', 'POST', function(response){console.log(response);});
해결책
Request should look like that:
FB.api(
'/707089732635823/invited',
'POST',
{
access_token: FB.getAccessToken(),
users: '100007028615075'
},
function(response) {
console.log(response);
}
)