Hi! I need to send messages on users wall or friends wall, I know how to post messages on my wall but how to post messages to another user wall??
thanks
Hi! I need to send messages on users wall or friends wall, I know how to post messages on my wall but how to post messages to another user wall??
thanks
to send to another user's wall - is absolutely the same as to send on current user's wall: with using Stream.publish
http://wiki.developers.facebook.com/index.php/Stream.publish
just specify target_id
with needed user's id ;-)
I trying to post the message using Stream.publish and nothing apear on user wall, I post my code here, what I'm doing wrong??
Facebook.Rest.attachment attachment1 = new Facebook.Rest.attachment();
attachment1.caption="new attachment";
attachment1.description="some description";
List<action_link> col = new List<action_link>();
action_link link = new action_link();
link.href="http://www.genuineinteractive.com/";
link.text="some text";
facebookService1.Stream.Publish("new message", attachment1, col, "100001028091644", 0);
Try this... ñ_ñ
try
{
String namePub = servicio.Users.GetInfo().first_name + "ha actualizado su estado";
String cosa = servicio.Stream.Publish(richTextBox1.Text,
new attachment()
{
name = namePub,
href = "http://www.facebook.com/apps/application.php?id=136818146334647",
caption = "Tú tambien puedes usar Escuchando ahora, es facil y rapido",
properties = null,
media = new List<attachment_media>()
{
new attachment_media_image()
{
src="http://www.rammsdio.com.ar/images/img14781001.gif",
href = "http://www.facebook.com/apps/application.php?id=136818146334647"
}
}
},
new List<action_link>()
{
new action_link()
{
text="Visita SQLeros",
href="http://www.sqleros.com.ar/wps"
}
}, stringId, 0);
listBox1.Items.Add("Has actualizado tu estado...");
richTextBox1.Clear();
if (checkBox2.Checked)
servicio.Stream.AddLike(cosa);
}
catch (FacebookException fb)
{
listBox1.Items.Add(fb.Message);
}