如何张贴在Facebook页面上的壁机器人? [英] How to post on Facebook page's wall in Android?

查看:151
本文介绍了如何张贴在Facebook页面上的壁机器人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我想发布的任何消息或链接到Facebook的page.What我已经试过是这样的。

Hi I want to post any message or link to an Facebook page.What I have tried is this.

void postInfo()
    {
        try
        {
            Bundle parameters = new Bundle();
            parameters.putString("message", messageFacebook);
            parameters.putString("name", "Test Name");
            parameters.putString("link", "http://www.mylink.com/");
            parameters.putString("picture", imageUrl);
            parameters.putString("display", "page");

            String responsePost = facebook.request("me/feed", parameters, "POST");
            String responsePagePost = facebook.request(FACEBOOK_PAGE_ID+"/feed", parameters, "POST");

            Log.i(TAG, "responsePost = " + responsePost);
            Log.i(TAG, "responsePagePost = " + responsePagePost);
        } catch (MalformedURLException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

我在做什么是我张贴的链接,用户的墙壁和放大器;也给我的应用程序的Facebook页面。 这code工作正常,但问题是,在Facebook PAGE电泳链接,我张贴在Facebook页面不会出现在网页的墙上,但它出现在页面的时间线中的框标题为通过其他MyApp的页面上最近的帖子的。

What I am doing is I am posting a link to user's wall & also to my app's Facebook page. This code works fine but problem is on Facebook page.The link which I post on Facebook page doesn't appear on page's wall but it appears on page's timeline in a box titled "Recent Posts by Others on MyApp Page".

我想要的职位应该出现在墙壁上,而不是时间表。

I want the post should appear on wall rather than timeline.

我应该怎么做,我没有得到,请帮助。

What should I do I am not getting please help.

推荐答案

Facebook已经改变了所有它的配置文件,以时间线了。任何Facebook页面将显示被别人帖子的其他人最近的帖子MyApp的页面上。此行为是由Facebook的,而不是由你的应用程序进行控制。还有就是你可以在这种情况下,什么也不做。

Facebook has changed all it's profiles to timelines now. Any facebook page will show posts by others as "Recent Posts by Others on MyApp Page". This behavior is controlled by facebook and not by your app. There is nothing you can do in this case.

这篇关于如何张贴在Facebook页面上的壁机器人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆