如何使用facebook api在Facebook文章中设置图标?

问题描述:

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://*.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

您不能根据您发布的消息进行设置。在那里出现的图标是您从开发人员仪表板设置的图标。

+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