2011-09-13 75 views

回答

0

可能通過facebook-api

+0

我已經整合了api,但想要將文本從一個活動傳遞給facebook – Jes

0

檢查這個代碼在Facebook發佈牆添加圖片和標題:

String link ="www.google.com"; 
    String image_url="http://dev.campusflock.com/img/medium_big_thumb/Deal/15.d23a69cbfb987be82dbfa563258080b9.jpg"; 
    parameters.putString("method", "stream.publish"); 

     parameters.putString(
     "attachment", 
     "{\"name\":\"" 
      + "companyName" 
     + "\",\"href\":\"" 
      + link 
     + "\",\"description\":\"" 
     + "Title" 
     + "\",\"media\":[{\"type\":\"image\",\"src\":\""+image_url+"\",\"href\":\"" +link+"\"}]}"); 

     authenticatedFacebook.dialog(Main.this, "stream.publish",parameters, new TestUiServerListener()); 

讓我知道如果ü找到任何困難。

謝謝Venky。

+0

我在做這樣的工作String shareText =「You Scored」+ counter +「在測驗中取12分」; \t \t \t \t意圖myintent = new Intent(getApplicationContext(),ShareIt.class); \t \t myintent.putExtra(「ShareText」,shareText); \t \t myintent.putExtra(「ImageUrl」,CommonKeys.FbQuizImageUrl); \t \t \t startActivity(myintent); – Jes

+0

@gina你能編輯你的問題併發布你的代碼嗎? – Venky

相關問題