hello everyone,
I am using this code to send a data on my friends timeline.
// //POST /{recipient_userid}/notifications?access_token= … &template= … &href= " +
function sendFacebookNotification(recipient_userid){
// function sendFacebookNotification(){
// alert('recipient_userid');
var data ={message : 'Create App Using LinkMe',
//href:'http://developer.mozilla.org/media/img/mdn-logo.png',
// href:'http://www.app-home.jp/AppHome/',
picture: "http:\/\/10.10.12.246\/app2you\/img\/userapps\/big\/1396617334.jpg",
name:'LinkMe',
caption:'LinkMe Mobile Engine',
description:'The fastest and smartest way to create and manage your mobile applications Easy to use, convenient, cross platform, available in Cloud...'};
//alert(data);
facebookmodule.requestWithGraphPath(recipient_userid+'/feed',data,
"POST", function(e){
//alert('under success');
if(e.success) {
alert('Success! From FB: ' + e.result);
} else {
if(e.error) {
alert(e.error);
} else {
alert('Unkown result');
}
}
});
}
but in this code there is one arise that when i send only message parameter from data array object i.e. {message:'create app using linkme'}, then it is working fine..............but when i concatenate with more parameter i.e.href, picturem link....... then it gave a error: operation faacebook sdk error code5.
please provide me a solution as son as possible.
thanks, supriya