SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Facebook & Twitter

    Hi, i am in the process of finishing off my sign up form on my site.

    I like most people here, would not use a social network to sign up to any website... i'd rather use an email address, HOWEVER, some people do use them.

    So, i am just about to start integrating the Facebook and Twitter Sign Up APIs into my site, however i have a few questions.

    1 - how do these work, what is the general process involved (what happens when they choose once of these methods)
    2 - once a user signs up with one of the apis, is their info (such as first name, last name, email address) pulled from the Facebook or Twitter database, then saved in my database
    3 - if i need to display some of the users details on my site (such as first name), where will the site be pulling the details from, my database or the social network database

    Thanks in advance to any help you can give on any of the above questions

  2. #2
    SitePoint Zealot
    Join Date
    Jun 2011
    Location
    Kolding, Denmark
    Posts
    108
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    I recommend creating username and password alongside social API's and use those only to speed up signup/login process. That sort answers second question, yes, some user data can be accessed with API. As far as I remember twitter doesn't allow access to users email.
    To display user data best would be to get data from your database, that will be quicker and allow to avoid errors when facebook or twitter servers are down. If needed, some sort of synchronization can be implemented to update user data from social networks.
    As for first question, what happens totally depends on your implementation, easiest way is to use popup login window and then handle authorization results. Or you might opt to handle all process in your code with REST API, that way achieving better integration with design of your site.

  3. #3
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok great, cool, will look into this...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •