Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 10, 2011, 08:44 AM   #1
mrl72
macrumors regular
 
Join Date: Apr 2008
How do you handle FB asynchronous requests?

So I'm working on my app that connects to FB, gets my user info then pulls down my friends and then pulls down friend details. Right now I am using the FB SDK to connect and authenticate and then the Graph API to issue the individual requests for information. All works good, except even though I fire the requests off separately if one request takes longer than the other then I get results out of sequence. Ideally I want to do things in order as I have other stuff relying on the order these requests are executed.

Any thoughts on how to do this?

Cheers.
mrl72 is offline   0 Reply With Quote
Old Jan 10, 2011, 10:03 AM   #2
dejo
Demi-God (Moderator)
 
dejo's Avatar
 
Join Date: Sep 2004
Location: Colorado
The trick lies in setting up your delegate callbacks properly.
__________________
dejo is offline   0 Reply With Quote
Old Jan 10, 2011, 10:38 AM   #3
mrl72
Thread Starter
macrumors regular
 
Join Date: Apr 2008
Thanks dejo - do you mean how it handles the response ie in the didLoad method? That's currently where I'm putting my parsing code for both of my Graph API calls. Not sure what else you could mean..

Cheers.
mrl72 is offline   0 Reply With Quote
Old Jan 10, 2011, 11:26 AM   #4
dejo
Demi-God (Moderator)
 
dejo's Avatar
 
Join Date: Sep 2004
Location: Colorado
Perhaps if I can see some code I can explain better.
__________________
dejo is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How do you handle your storage? puckhead193 Digital Video 10 Nov 3, 2009 09:59 PM
How do you handle your media library??? wayland1985 MacBook Pro 0 Nov 3, 2008 08:58 PM
How do you handle regular rentals? motoxpress Apple TV and Home Theater 7 Oct 15, 2008 03:58 PM
survey: how do you handle songs in several different albums... RogerThornhill iPod 5 Sep 13, 2008 11:14 AM
How do you handle lots of "various artists?" stark23x Music Discussion 9 Nov 17, 2003 09:18 PM


All times are GMT -5. The time now is 09:23 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC