Reputation: 523
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 is a need of Batch Requests concept to do this.
I cant understand, how can I create jsonobjects.
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.
Upvotes: 0
Views: 313
Reputation: 9217
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);
Upvotes: 1