2013-02-27 39 views
1

enter image description here如何使用facebook api在Facebook文章中設置圖標?

我在facebook上發佈了一條消息,使用下面顯示的包。

Bundle postParams = new Bundle(); 
postParams.putString("name", "Facebook SDK for Android"); 
postParams.putString("caption", "Build great social apps and get more installs."); 
postParams.putString("description", "The Facebook SDK for Android makes it easier and faster to develop Facebook integrated Android apps."); 
postParams.putString("link", "https://developers.facebook.com/android"); 
postParams.putString("picture", "https://raw.github.com/fbsamples/ios-3.x-howtos/master/Images/iossdk_logo.png"); 
Request request = new Request(Session.getActiveSession(), "me/feed", postParams, 
            HttpMethod.POST, null); 
RequestAsyncTask task = new RequestAsyncTask(request); 
task.execute(); 

How to set an icon and add an action in a facebook post using facebook api? 我試了一下,該解決方案可以幫不了我。

+0

是不是像那樣工作http://stackoverflow.com/questions/5300128/how-to-set-an-icon-and-add-an-action-in-a-facebook-post-using-facebook -api – 2013-03-28 08:56:57

回答

2

您不能根據您發佈的消息進行設置。在那裏出現的圖標是您從開發人員儀表板設置的圖標。

+0

但我已經從開發人員儀表板設置了該圖標。當我使用Facebook API向牆上發佈消息時,圖標不會顯示。我應該做什麼? – tang 2013-02-27 09:56:08

+0

您確定在「應用程序詳情」 - >「主要圖標」下設置了一個16x16圖標? – JanithaR 2013-02-27 10:10:01

+0

是的!這個應用程序是我的測試應用程序,它不上傳到谷歌播放尚未。這可能是問題? – tang 2013-02-27 10:24:14

相關問題