1taly85
I hate code!
Profile
Posts: 9
Reg: Sep 29, 2013
Camarillo
90
10/29/13 01:31 AM (10 years ago)

Facebook on IOS

I loaded up facebook into scringo. at first threw errors left and right finally was able to figure it out cleaned up the code abit and got it to start loading the facebook login screen. First it gave me the spinning wheel of death until i moved the: -(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { return [ScringoAgent handleOpenURL:url]; } -(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ return [ScringoAgent handleOpenURL:url]; } down to above: //dealloc... now it allows me to "login" without actually loging me in. it sends me back to scringo where I get the starting "login or sign in" menu at the top. now in my log is say this: igrrecruits[2172:907] BT_fileManager: saveTextFileToCacheWithEncoding: appModified.txt encodingFlag: -1 2013-10-29 01:29:16.068 igrrecruits[2172:907] Scringo - User 'hHG5Bmdwzj' has successfully signed up / logged in 2013-10-29 01:29:16.459 igrrecruits[2172:907] Scringo - getNearbyUsers called but no location available 2013-10-29 01:29:16.513 igrrecruits[2172:907] Scringo - Got my user data. user is (null), (null) 2013-10-29 01:29:16.518 igrrecruits[2172:907] Scringo - user is anonymous 2013-10-29 01:29:16.864 igrrecruits[2172:907] Scringo - getUserFriendsWithDelegate: FB response: { data = ( ); Not sure where i went wrong?
 
BigAnth
Aspiring developer
Profile
Posts: 133
Reg: Jan 25, 2012
Sunderland
2,780
like
10/29/13 04:48 AM (10 years ago)
Im not the best with this but when i had problems it was because i didn't do the following.. Have you created FacebookAppID string within the plist file ? You need to create a facebook app under developers then you get an ID which you paste within the string you have just created
 
1taly85
I hate code!
Profile
Posts: 9
Reg: Sep 29, 2013
Camarillo
90
like
10/29/13 10:52 AM (10 years ago)
I created the FacebookAppID string within the plist file and I have the app setup with facebook, disabled sandbox enabled login feature disabled deep linking.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.