Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
04/05/13 12:02 PM (12 years ago)

Scringo - how do you log in with FB or Twitter in Android?

Gang, yesterday I managed to integrate SCRINGO into Adroid (my big thanks to raveyd!). Today I spent with trying to make the Facebook login work... Twitter login work... no and no and no... does not work. Any ideas? I almost know the manual of Scringo by heart... pulling my hair. Frogman
 
Show
Lost but trying
Profile
Posts: 31
Reg: Mar 16, 2013
Or Akiva
1,560
like
04/05/13 12:40 PM (12 years ago)
some problem here
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/05/13 01:02 PM (12 years ago)
Strange.. What happens? I assume you have a facebook or twitter account to log in with, and you're using the correct username and password?
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/05/13 02:01 PM (12 years ago)
Hi raveyd, I am logged into my accounts in FB and in Twitter. Twitter brings me to to a screen where I shall confirm that my app can sign in... and nothing happens. FB is giving me just an error. Cheers! Frogman
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/05/13 02:14 PM (12 years ago)
Have you set up your fb and twitter ids on the scringo website and added them to the scringo.properties file that you put in the project assets folder? If you've done all that, I have no other ideas! **edit** Actually, I think that's changed? You might just need to add the ids to the scringo.properties file.
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/05/13 02:39 PM (12 years ago)
Yes I created the ID's, change to read/write in Twitter priviledges, put ID's to scringo.properties, read 4 hours stackoverflow, tried on another device... Maybe too much bad luck today. It seems that there is either a problem with hash keys (that is a beautiful part too...), or there may be also a problem with compatibility of FB a Twitter apps with my app. By the way, there is nowhere to allow SSO in FB developer account, or I did not find it. There is a an option to sign in to other app in Twitter developer account. Maybe I will build it from scratch again. BTW, I added the Android SDK for FB, but is it really needed there? Cheers! Frogman
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/05/13 02:50 PM (12 years ago)
I don't know, sorry. I haven't set up fb or twitter ids for years, can't remember a thing. It's a bad luck day! I'm sure someone else will know.
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/06/13 12:33 PM (12 years ago)
Hey DD, I just solved Facebook! I was in sandbox mode on the FB side... Plus you have to provide proper hash keys - in the end it is not so difficult, but very clumsy to do. Twitter is still refusing to log me in. Cheers! Frogman (semi-Borat now)
 
scringo
Veteran developer
Profile
Posts: 38
Reg: May 09, 2012
location unknow...
380
like
04/06/13 01:08 PM (12 years ago)
Hey Frogman, Regarding Twitter - Simply create an app here - https://dev.twitter.com/apps/new and copy the values to the scringo.properties file as stated here: https://dev.scringo.com/resources.php?resource=guides&sub=Android#Connect%20to%20Social%20Networks No need for "write" permissions, Scringo only reads your users' data, never posts for anyone. Important note: Don't leave the Callback URL empty, fill it with something, even http://www.test.com If still doesn't work out, please email [email protected]. Elon
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/08/13 02:46 AM (12 years ago)
Hi Elon, the permissions may create problem, I need to change it back to read. Yes, I have a callback URL there. BTW, I very much appreciate your feedback, and also feedback from Ofer in your support. Very prompt and constructive, very rare experience. Good luck to you and us all! Frogman
 
Ofer
Android Fan
Profile
Posts: 54
Reg: Apr 06, 2013
Tel Aviv
540
like
04/08/13 03:10 AM (12 years ago)
Hi Frogman, thanks for the kind words, We try our best... ;-) Set the permissions to Read, I hope this is it, I just rechecked if Twitter changed anything and it doesn't look so. Things work there for me. If this still persists, send me an email and we'll try to work something out. Ofer
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/08/13 03:59 AM (12 years ago)
Hi Ofer, I got TW solved. It was the permissions. I had it set to everything else only not for read. I re-set it to read, and it works fine now. I will send you my project regarding maps RADAR - we communicated on your support line ofer@scringo. Frogman = Rudolf
 
Ofer
Android Fan
Profile
Posts: 54
Reg: Apr 06, 2013
Tel Aviv
540
like
04/08/13 04:20 AM (12 years ago)
Oh, funny! Great then, talk to you there ;-)
 
Frogman
Aspiring developer
Profile
Posts: 264
Reg: Jan 05, 2013
Bratislava
11,190
like
04/09/13 02:55 AM (12 years ago)
Here is the summary to answer my own questions: Twitter: go to dev.twitter.com, (create a developer account), create an app: 1. permissions need to be set to READ, because scringo is not posting anything on your behalf 2. use consumer key and consumer secret, not the other tokens... in scringo.properties in assets (provided that you copied it there as a part of the setup process) 3. set a callback URL, do use something existing and live, whatever When logging in, the screen will for the first time require your account name and psswd, that is OK, next time it may log you in with SSO (single sign-on), if you are logged to your twitter app. Facebook: create a developer account. Create an App, get your app ID, put that to scringo.properties in assets (provided that you copied it there as a part of the setup process). 1. use keytool to create your FB hash key: in terminal, paste what I used, or what you copy from scringo docs: keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 Enter keystore password: android this will give you your hash key... remember, that is for debug. It looks like this: QGdaq7FebBAVlj9YEGoCeDEKQbc= Place your hash key to the Native Android App section, and also to your Settings/Sample App Settings (this is in the right upper corner of the screen, next to log out) Remember to have the sandbox checkmark off, otherwise it may happen that you will not be able to log in. Cheers! Frogman
 

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.