2010-05-02 62 views

回答

0

發送給另一個用戶的牆 - 是完全一樣的對當前用戶的牆派:用Stream.publish

只需指定target_id有需要的用戶的ID ;-)

+0

但我怎樣才能得到用戶的ID沒有連接到他的帳戶? – Maki 2010-05-02 10:26:46

+0

呵呵?你如何從你的問題中確定「另一個用戶」?你知道關於那個「另一個用戶」的具體情況嗎?發佈到非當前用戶的牆的唯一可能的方式是:1)獲取活動用戶進行綁定(該用戶將是帖子的作者)2)瞭解另一用戶的user_id。 – zerkms 2010-05-02 14:23:15

+0

我知道這個「另一個用戶」的用戶名和密碼 – Maki 2010-05-02 20:11:08

1

試試這個...ñ_ñ

  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); 
     }