I've been digging alot to find a solution to my problem and after a thousand of attempts I decided to ask for help.
My website app needs to send invitation to the current logged user facebook friends. In order to do this I've tryed this code according to Facebook documentation, blog and many other examples I found
FB.ui({
method: 'apprequests',
message: 'Checkout! This is cool!',
data: '???'
},
function(response){
console.log(response);
//do I need to do something else here ?
}
);
I see the popup with all my friends, and when I select few and click "send requests" button popup closes and no request is sent, I've the confirmation from all my (patience) friends.
Is there something I do wrong ?
FYI I've also tryed this call directly from browser, ajax and php
https://graph.facebook.com/<CURRENT_USER_FACEBOOK_ID>/apprequests?to=<CURRENT_USER_FRIEND_FACEBOOK_ID>&message='TestMessage'&data='trackingcode_notsure_what_i_need_it_for'&access_token=<APP_ACCESS_TOKEN>
My aim is to notify a friend of mine(current facebook user) that there is a new application and invite him.
Many thanks in advance.