如何使用他们的Facebook ID来发布多个朋友墙他们的、多个、如何使用、朋友

2023-09-13 02:18:11 作者:单身才叫青涩//。

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

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);