2013-03-01 44 views
3

嗨我寫的Facebook應用程序,在這裏我使用Post對象張貼留言板的消息,我能夠發佈爲好,Facebook發佈對象中的Android

但我的問題是我得到的圖像鏈接以及同時在文本中單擊我已經給(許願......),你可以看到在下面的屏幕截圖

所以在這裏我需要一個小的幫助,我怎麼能刪除此鏈接...

我已在Strings.xml中提供此短信:

<string name="app_action">Wishing you a birthday as special as you are! Hope this is a new beginning to lots of great things and happy moments in your life. Wish you a fabulous birthday!</string> 

enter image description here

ImageLink的:

public static final String HACK_ICON_URL = "http://i1.pickupflowers.com/images/puf/images/product/large/carnations-lilies-and-roses.jpg"; 

我的代碼:

Bundle params = new Bundle(); 
    params.putString("method", "fql.query"); 
    params.putString("query", query); 
    FacebookUtility.asyncRunner.request(null, params, new FacebookRequestListener(FacebookRequestListener.FRIENDS, facebookRequest)); 

回答

0

可能是你沒有正確設置參數後向上。請參閱我用於此的代碼:

Bundle postParams = new Bundle(); 

     postParams.putString("name", getString(R.string.fbPostName)); 
     postParams.putString("caption", getString(R.string.fbPostCaption)); 
     postParams.putString("description", getString(R.string.fbPostDescription).replace("(Venue)",venueName)); 
     postParams.putString("link", getString(R.string.fbPostLink)); 
     postParams.putString("picture", getString(R.string.fbPostPicture)); 

最後兩行代碼是設置鏈接的圖片和鏈接。