Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-10-2010, 04:24 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 31
omniscian is on a distinguished road
Default FBConnect problem

Hi guys,

I've followed the sample code from facebook's facebook-iphone-sdk at master - GitHub and have my program compiling.

Problem is when I click "connect" after entering my account information, my app hangs. "Connect" button becomes grayed out and then it goes back to the Login button after around 20 seconds.

Any idea what could be up with it?
omniscian is offline   Reply With Quote
Old 08-10-2010, 10:37 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 31
omniscian is on a distinguished road
Default

Bump
omniscian is offline   Reply With Quote
Old 08-12-2010, 05:27 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 31
omniscian is on a distinguished road
Default

No one?
omniscian is offline   Reply With Quote
Old 08-12-2010, 07:36 AM   #4 (permalink)
Persian Developer
 
Join Date: Mar 2009
Posts: 274
Momeks is on a distinguished road
Default

did you watch the sample video of the Facebook API ? explains every thing !, and check the debugger then find your problem
__________________
My Applications On the App Store


Momeks is offline   Reply With Quote
Old 08-12-2010, 09:30 AM   #5 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 138
rrichar is on a distinguished road
Default

can you post the link you are suppose to go to to sign up for your API ?
rrichar is offline   Reply With Quote
Old 08-12-2010, 10:44 AM   #6 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 31
omniscian is on a distinguished road
Default

Yeah I've followed the video, the pop up works, I enter in my login details, I press connect and it just hangs on connect and then returns to the previous screen after around 20 seconds. I have double checked the API keys and they are all correct.
omniscian is offline   Reply With Quote
Old 08-12-2010, 04:30 PM   #7 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 65
dageshi is on a distinguished road
Default

Code:
- (void)session:(FBSession*)session didLogin:(FBUID)uid {
    NSLog(@"User with id %lld logged in.", uid);
}
Put a break point in there and see if it gets called?

I think there is probably an equivelent for a didFailLogin as well if memory serves, breakpoint em and see what happens.
dageshi is offline   Reply With Quote
Old 08-16-2010, 10:45 AM   #8 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 31
omniscian is on a distinguished road
Default

Tried it again today. Put breakpoints in and they're just not being reached. I click connect and it doesn't crash, waits around 30 seconds and goes back to the login button. I've followed about 3 different tutorials and examples, copied and pasted code into it and it's just not having any of it. Anyone any ideas?
omniscian is offline   Reply With Quote
Old 08-16-2010, 12:44 PM   #9 (permalink)
Registered Member
 
msencenb's Avatar
 
Join Date: May 2009
Location: Stanford, CA
Posts: 291
msencenb is on a distinguished road
Default

Put a breakpoint in early and step through the code and see where it hangs.


On a side note.. you do have wifi/3g enabled right?
__________________
I'm starting a new blog dedicated to iOS development. Check it out at:

http://www.iosdevscreencasts.com
msencenb is offline   Reply With Quote
Old 08-17-2010, 04:03 AM   #10 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 31
omniscian is on a distinguished road
Default

I got it. There was a problem with Safari which wouldn't let me log in to anything. Reinstalled and everything's working fine. Wasn't a problem with the code at all. Safari's not my main browser so didn't think of it until now.

Thanks for your help guys.
omniscian is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 326
9 members and 317 guests
flamingliquid, ilmman, iram91419, linkmx, nadav@webtview.com, Objective Zero, Paul Slocum, stanny, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,656
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, iram91419
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:41 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0