Reputation: 2473
I am trying to invite users to a Facebook event using fb.api:
FB.api('/345345345345453/attending', 'post', function (data) {
console.log(data);
});
I also tried this but no help too:
FB.api('/345345345345453/attending&access_token + '/ACCESSTOKEN'', 'post', function (data) {
console.log(data);
});
I get a message in my log saying:
"(#100) User must be able to RSVP to the event."
Can anyone help. Thanks.
Upvotes: 1
Views: 1775
Reputation: 11852
If you want to invite users, you should be using invited
not attending
. See the documentation. Using attending
automatically marks them as attending your event.
Upvotes: 1