Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Facebook App Users in Tiggzi Database

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.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Facebook App Users in Tiggzi Database

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/...

Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Facebook App Users in Tiggzi Database

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Facebook App Users in Tiggzi Database

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...)

Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Facebook App Users in Tiggzi Database

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Facebook App Users in Tiggzi Database

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.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Facebook App Users in Tiggzi Database

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

Michael Brandon
Posts: 0
Joined: Mon Apr 21, 2014 9:17 pm

Facebook App Users in Tiggzi Database

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."

  1. 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?

  2. 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.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Facebook App Users in Tiggzi Database

I agree. This would be a very good tutorial for many of us. Can you help, Apprey?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Facebook App Users in Tiggzi Database

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...

Return to “Issues”