i developing application based on user challenges. app requires facebook account play.
i want user able select bunch of friends wants challenge , send them "invitation". besides this, need find friends did user invite in order save them database , "prepare" challenge.
i managed select-friends-dialog using this, have no idea how retrieve selected users. also, work on non-canvas facebook applications? read page, not sure whether work non-canvas application.
here select-friends-dialog code:
function challengefriends(){ fb.ui({ method: 'apprequests', message: 'message", title: 'title' });
}
any highly appreciated! thank you.
i've written tutorial covers asking , other aspects of request dialog: how to: send application request using facebook graph api
the idea capture request ids callback , save them in db, , within request can find invitee id (friend id):
fb.ui({ method: 'apprequests', message: 'check out application!', title: 'send friends application request', }, function (response) { if (response && response.request_ids) { var requests = response.request_ids.join(','); $.post('handle_requests.php',{uid: <?php echo $uid; ?>, request_ids: requests},function(resp) { }); } else { alert('canceled'); } });
Comments
Post a Comment