How to post on multiple friends wall using their facebook ids

前端 未结 1 750
没有蜡笔的小新
没有蜡笔的小新 2021-01-25 20:54

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

I have seen stackoverflow posts regarding this issue.I found that there

相关标签:
1条回答
  • 2021-01-25 21:12

    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);
    
    0 讨论(0)
提交回复
热议问题