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 01-30-2011, 12:14 PM   #1 (permalink)
Just Some Guy
 
Join Date: Dec 2010
Posts: 112
UnretroGamer is on a distinguished road
Question How open FACEBOOK CONNECT authentication in Dialog instead of Safari

I implemented Facebook Connect in my app but I did the simple way described here which sends me to Safari at the beginning of the session. I then tried the Login button and that is cool with the button and all, but it still sends me to a Safari page, which is hideous. How would I add the Login button and make it open a dialog like in the Doodle Jump login? If you have Doodle Jump and want to test it out go to options, log out and log back in. You'll see you can login from within the app without having to multitask.

Last edited by UnretroGamer; 01-30-2011 at 12:55 PM.
UnretroGamer is offline   Reply With Quote
Old 01-30-2011, 01:39 PM   #2 (permalink)
Crafty Veteran
 
Magic Hands's Avatar
 
Join Date: Nov 2008
Location: Memphis, TN
Age: 23
Posts: 436
Magic Hands is on a distinguished road
Send a message via Skype™ to Magic Hands
Default

Im not a 100% sure you still can. I have been looking around and I can't seem to find anyway to do it. I have used Facebook Connect before that will pop up a dialog box within your application that will allow you to login without having to be routed to Safari. This was awhile back, when I recently tried it again the only way I could do it was to use Safari
__________________
Magic Hands is offline   Reply With Quote
Old 01-30-2011, 01:50 PM   #3 (permalink)
Just Some Guy
 
Join Date: Dec 2010
Posts: 112
UnretroGamer is on a distinguished road
Default

Quote:
Originally Posted by Magic Hands View Post
Im not a 100% sure you still can. I have been looking around and I can't seem to find anyway to do it. I have used Facebook Connect before that will pop up a dialog box within your application that will allow you to login without having to be routed to Safari. This was awhile back, when I recently tried it again the only way I could do it was to use Safari
I researched it two and found that if you comment out lines 130-144 of facebook.m it should work. Looking at the code it makes sense that it should open the login dialog. I don't know why it doesn't do it.

I wonder if anyone has the old code because I see it in Doodle Jump, Zombie Farm etc. Someone has to have it saved.

I also wonder how Zombie Farm stores data on facebook. I can login to my friends Zombie Farm and have everything there from my phone... hmm...
UnretroGamer is offline   Reply With Quote
Old 01-30-2011, 02:03 PM   #4 (permalink)
cye
14 Year Old App Developer
 
Join Date: Mar 2010
Location: Texas
Posts: 242
cye is on a distinguished road
Default

Try out sharekit
ShareKit : Drop-in Share Features for all iOS Apps
__________________
14 year old app developer!

Type Faster and More Accurately With Easy Typing

"Like" me on facebook!

A+ FlashCards currently #6 Free Education app


Confidence is contagious. So is lack of confidence.
-- Vince Lombardi
cye is offline   Reply With Quote
Old 01-30-2011, 02:53 PM   #5 (permalink)
Just Some Guy
 
Join Date: Dec 2010
Posts: 112
UnretroGamer is on a distinguished road
Default

Quote:
Originally Posted by cye View Post
I checked that out. I'm not using Facebook to share things. I'm using it to get data to personalize the app.
UnretroGamer is offline   Reply With Quote
Old 01-31-2011, 06:55 PM   #6 (permalink)
Registered Member
 
Objective Zero's Avatar
 
Join Date: Oct 2010
Posts: 1,210
Objective Zero is on a distinguished road
Default

I would really like to know this too!
__________________
Questions?

Check out my OCR app!
http://itunes.apple.com/app/ocr-pro/id486512712?mt=8
Objective Zero is offline   Reply With Quote
Old 02-21-2011, 01:43 AM   #7 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 129
tmxmatthew is on a distinguished road
Default

I want to know too! I don't want Safari to be called out but dialog box
tmxmatthew is offline   Reply With Quote
Old 03-09-2011, 04:17 AM   #8 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 1
asim1800 is on a distinguished road
Default

I've changed authorize implementation in Facebook.m.

The line was:
[self authorizeWithFBAppAuth:YES safariAuth:YES];

Now it is:
[self authorizeWithFBAppAuth:YES safariAuth:NO];

I hope I won't be punished and sent to the hell.
asim1800 is offline   Reply With Quote
Reply

Bookmarks

Tags
connect, dialog, facebook, login, safari

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: 354
15 members and 339 guests
7twenty7, blasterbr, Clouds, dre, EvilElf, iAppDeveloper, jeroenkeij, jimmyon122, Mah6447, Morrisone, n00b, pungs, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,121
Posts: 402,900
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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