Page 1 of 2
Facebook App Users in Tiggzi Database
Posted: Fri Apr 05, 2013 2:33 am
by Christine Stringfield
I am trying to create an app that will allow users to login via Facebook rather than setting up a user name and password. I followed the info in this tutorial:
http://docs.tiggzi.com/tutorials/buil...
And I can connect successfully to Facebook, however how do I create users on the Tiggzi database for those who login via Facebook? I want to be able to retrieve app data the next time the user logs into my app via Facebook.
Facebook App Users in Tiggzi Database
Posted: Fri Apr 05, 2013 3:52 am
by Illya Stepanov
Hi Christine, you'll need to get a response from a Facebook API and put them in your database.
This should help http://docs.tiggzi.com/documentation/...
Facebook App Users in Tiggzi Database
Posted: Fri Apr 05, 2013 4:57 am
by Christine Stringfield
How do I create a user who logs in via Facebook? Creating a user in the Tiggzi user table requires that you send a username and password.
Facebook App Users in Tiggzi Database
Posted: Fri Apr 05, 2013 7:55 am
by Kateryna Grynko
Hi Christine,
Facebook user credentials cannot be accessed from Tiggzi. All the logic of verifying username and password is processed on Facebook site. In Tiggzi app you can get only data from Facebook Graph API: first name, last name (http://docs.tiggzi.com/tutorials/buil...)
Facebook App Users in Tiggzi Database
Posted: Fri Apr 05, 2013 5:35 pm
by Christine Stringfield
So if I have a Tiggzi data that I want to belong to a Facebook user of the app, do I need to create my own "Facebook Users" collection to store Facebook User name and other facebook user data? It sounds like I will need to have two sets of logic for my app depending on whether or not they signed up the traditional way, or signed in via Facebook.
Facebook App Users in Tiggzi Database
Posted: Fri Apr 05, 2013 6:28 pm
by Maryna Brodina
Hi Christine! You may have two sets of logic, but you may also merge them. For example after registration through Facebook create user using first and the last name. Then you can do "hidden" login to your DB through Facebook and all logic will be connected to one collection.
Facebook App Users in Tiggzi Database
Posted: Sun Mar 16, 2014 10:30 pm
by bahar.wadia
Christine,
Were you successful in implementing this? I am very interested, if you are willing to share your final solution.
Most users expect to be able to login via Facebook or other social media. I wish this was built into Appery.
Any help you can offer will be greatly appreciated.
Thanks
Facebook App Users in Tiggzi Database
Posted: Wed May 14, 2014 10:51 pm
by Michael Brandon
Hello,
I too would like to know if this solution worked. But with more clarification on this..
"after registration through Facebook create user using first and the last name. Then you can do "hidden" login to your DB through Facebook and all logic will be connected to one collection."
After the user logs in with Facebook, where do I invoke "create_new_userService" and how do I map their Facebook First/Last name to it?
What is "Hidden Login?" and how is this done through Facebook?
These suggested solutions all seem to require writing some level of Sever Code that opens a general email query and then creates a Server generated passwordKey;
https://getsatisfaction.com/apperyio/...
and this one;
https://getsatisfaction.com/apperyio/...
Considering some users prefer to use Email and some like using a form of oAuth (with their preferred social platform), I would think adding oAuth users to the system User collection would be quite common. If not mandatory.
Facebook App Users in Tiggzi Database
Posted: Wed May 14, 2014 10:58 pm
by bahar.wadia
I agree. This would be a very good tutorial for many of us. Can you help, Apprey?
Facebook App Users in Tiggzi Database
Posted: Thu May 15, 2014 12:40 pm
by Maryna Brodina
Hi All,
If we understand correctly you want login/password to be saved in Appery.io DB so that user can automatically login in Facebook. Unfortunately it is not possible to do. Due to security reasons OAuth 2.0 protocol doesn't support passing login/password through request. It is done so that app couldn't use user's data without user awareness. Every time when user needs to login through Facebook, he has to type login/password in OAuth 2.0 window.
Here is tutorial showing how to login on Facebook http://docs.appery.io/tutorials/build...