Is there any option available for using multiple user message sending or feed wall post in FB?Tried with arrays for 'to' field, comma separated ids,......It only takes first id.
======================================================================
FB.init({appId: "APP_ID", status: true, cookie: true});
var obj = { method: 'send', redirect_uri: 'site_url', link: 'https://developers.facebook.com/docs/reference/dialogs/', picture: 'http://fbrell.com/f8.jpg', to:[fbid1,fbid2], name: ' testing name', caption: ' testing caption', description: 'testing to interact with users.' };
FB.ui(obj,callback );
======================================================================
$.each(yourFBIdsArray, function(index, fbid){
FB.api('/'+fbid+'/photos', 'post', {
message: messageToSend,
url: ABSOLUTE_IMAGE_URL,
}, function(responseOne){
if (!responseOne || responseOne.error) {
//ERROR
} else {
//SUCCESS
}
});
});
You could do this. It will be slow but work. The example post a photo in the wall of the person with the facebook id passed. You need also to ask permission {scope:'publish_stream'} when you do the app login.