I need to post something on my friends wall. i used a facebook friend selector. I implemented like this
//Execute the friend selector
$(document).ready(function() {
$(".shareFriends").fSelector({
facebookInvite: false,
onSubmit: function(ids){
publish(ids) // call the below function
},
});
});
function publish(ids){
FB.ui(
{
method: 'feed',
name: 'Name',
caption: 'caption',
to:ids,
description: 'description ',
link: 'link to my app?uref=<?php echo $_SESSION['uid']; ?>',
picture: 'path to image'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was faild');
}
}
);
}
when i run this i'm getting this error.
API Error Code: 100
API Error Description: Invalid parameter
Error Message: [100006588491260] does not resolve to a valid user ID
//this user id is working
I entered recipient id direct. this method works properly.
FB.ui(
{
method: 'feed',
name: 'Name',
caption: 'caption',
to:100006588491260,
description: 'description ',
link: 'link to my app?uref=<?php echo $_SESSION['uid']; ?>',
picture: 'path to image'
},
How to fix this issue. and how can i send same post on multiple friends wall?