MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
07/29/13 10:32 PM (12 years ago)

Scringo integrated but crashes when i try to log in to Facebook

This is for ios, with xcode 4.6.1 and the latest version of Scringo. I'm pretty certain I've jumped through all of the hoops to integrate Scringo and add Facebook. Scringo screens appear as they should in the simulator, but it crashes after attempting to log in to Facebook. I've attached some screenshots. The debugger indicates that it was terminated because "no appid provided" but i've checked and rechecked the instructions and think i've got everything covered. Here's the debugger language: https://www.dropbox.com/s/1zxmsgm6mac295w/Screen%20Shot%202013-07-30%20at%2012.07.45%20AM.png https://www.dropbox.com/s/f6m7ns1f07ulr0q/Screen%20Shot%202013-07-30%20at%2012.08.29%20AM.png this is a shot of my appdelegate file: https://www.dropbox.com/s/3mdx79rnw2f3pf6/Screen%20Shot%202013-07-30%20at%2012.11.51%20AM.png
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
07/30/13 06:12 PM (12 years ago)
Regarding the step i which you obtain a Facebook ID and plugging it into the code within the appdelegate.m file...here's another question. I've got my Facebook app ID, but I haven't completely filled out and submitted my Facebook app page to Facebook for review and approval...does that matter? My impression from everything I've read and the BT/Zurich video tutorial on this process is that all you need is the Facebook app ID to complete the initial process of integrating Scringo with Facebook. Scringo launches on my simulator but I'm stuck at the Facebook login. The app freezes and I get a debug message indicating "no app id provided." So my question here is this: is a Facebook app id all i need for this step or do i need a fully submitted and approved Facebook app page before i can actually log in to Facebook from the app?
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
07/31/13 10:48 AM (12 years ago)
I've yet to do Scringo/FB for iOS but I'm trying to make this work in Android. It's different steps but I've integrated the Facebook login with Socialize and the Parse SDK for iOS in the past. The screens at the FB dev portal are always changing but you do need more than the APP ID for it to work. In your FB developer portal for the app you have to enable the Facebook login. You also need to add your Bundle ID there and then configure the URL type in your XCode project to work with Facebook. I think this is covered somewhat decently in Step 5 here: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/ That's the callback so that once the user authenticates it goes back to your app. That has to be added to your .plist file. I learned how to do this following a Socialize tutorial and some docs from Singly omn adding FB logins. The Scringo guys do seem to peruse the BT board and have helped folks here. I wish I could be more helpful, but I'd have to walk thru the process myself before I could say "Do This".
 
MrT
Aspiring developer
Profile
Posts: 81
Reg: Jan 21, 2013
Dallas
3,010
like
08/01/13 11:08 AM (12 years ago)
Thank you ATRAIN53. There were two things i had not done to my plist -- adding my facebookapplid and my facebook display name. It was not clear at all from the tutorial that I was referencing that these steps existed.
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
08/07/13 05:04 PM (12 years ago)
Yeah, just got scringo going in iOS, the instructions are lacking a bit, as they were in Android. As long as you follow all the links that they provide and follow all the instructions inside them it seem to be ok. The way the instructions are written though doesn't make it clear that some of those important steps are just that, important and need to be followed. The only prob I have with iOS now is the app freezes completely if I refresh. No errors, just frozen. Does it on the sim too. I probably botched something somewhere... Tim
 
Uelsimon
Lost but trying
Profile
Posts: 272
Reg: Mar 25, 2012
NYC
4,470
like
08/09/13 03:11 PM (12 years ago)
@Tim, I'm also facing the refresh-freeze issue. Looking around for a solution now. let me know if you find one first. €
 
WolfTimJ
buzztouch Evangelist
Profile
Posts: 810
Reg: Feb 20, 2011
Rockwall, TX
17,400
like
08/09/13 03:41 PM (12 years ago)
Found it. Some code in wrong spot. I'll send further when I get home.
 

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.