如何使用他们的Facebook ID来发布多个朋友墙 [英] How to post on multiple friends wall using their facebook ids

查看:144
本文介绍了如何使用他们的Facebook ID来发布多个朋友墙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,我有张贴图片和消息,以墙多朋友的要求。

In my application, I have a requirement of posting image and message to wall of multiple friends.

我已经看到了关于这个issue.I发现,有需要的批请求概念做这个计算器的帖子。

I have seen stackoverflow posts regarding this issue.I found that there is a need of Batch Requests concept to do this.

我无法理解,我怎么可以创造jsonobjects。

I cant understand, how can I create jsonobjects.

我看到一些帖子,我们不能发布超过10个职位在再寄一次没有必须对这批申请的概念太多的想法。

I have seen in some of the posts,that we cannot post more than 10 posts at a time.I didnt have much idea on this Batch Request concept.

推荐答案

您可以使用下面的code创建连续请求之间的延迟。

you can use the following code to create delay between successive requests.

    int count = 10;
    new Timer().schedule(new TimerTask() {

        @Override
        public void run() {
            if (count>=10) {
                this.cancel();
            }

        MainActivity.this.runOnUiThread(new Runnable() {

            public void run() {
                //Do the facebook request.

            }
        });

        }
    }, 1000 , 1000);

这篇关于如何使用他们的Facebook ID来发布多个朋友墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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