Build retries loop around facebook.requestWithGraph()

You must Login before you can answer or comment on any questions.

Hi,

My App (Android, SDK 2.1.1GA) sends and image to facebook, gets the returned FB-id and posts that to another site. It works great while the connection is good. If not ... messages like 'boken pipe' etc. are returned.

So I want some retries but as far as I know the function is asynchronous so I can't figure out where to put the loop.

The most important line is: Titanium.Facebook.requestWithGraphPath('me/photos', data, "POST", showRequestResult); and the showRequestResults handles the returned data. But for some reason I can't figure out how to build a loop 'untill success'.

Anyone an idea? Thanks in advance!

Oscar

— asked 10 months ago by Oscar Kneib
2 Comments
  • did you find a solution to this problem yet?

    — commented 9 months ago by Aaron Saunders

  • Unfortunately not ... But hadn't much time to spent on this. Will try later.

    — commented 9 months ago by Oscar Kneib

Your Answer

Think you can help? Login to answer this question!