Facebook and Google + authorized logon, facebookgoogle

Source: Internet
Author: User
Tags app service

Facebook and Google + authorized logon, facebookgoogle

In reality, third-party applications such as Facebook and Google + are required to log on to their Web applications (Android and IOS Mobile apps may also exist), which are essentially official js sdk applications. At this time, I had to go to their official documents.

NOTE: If all the connections cannot be opened, please flip through the Q ..........

Reference:

1. facebook: https://developers.facebook.com/docs/facebook-login/web

2, google: https://developers.google.com/identity/sign-in/web/sign-in#add_a_google_sign-in_button

 

I. Preparations

--- Facebook

1. You must have an appid when logging on to facebook.

2. After creating an application and installing the application, complete the settings (it must be https or cannot be connected normally). You can use the official default button or custom button to log on to the application.

--- Google

1. clientid (Oauth2.0 Client ID) is also a required parameter for authorized logon. The official statement is the Client ID corresponding to the application credential. You must go to https://lele.developers.google.com/apis/credentialsto create the application credential.

2. After creating the app creden, go to https://console.developers.google.com/apis/libraryto enable the app service. This is the Web Client (corresponding to social networking> G + and Google People APIs, which are enabled in the app creden created by yourself)

2. obtain user information based on the api in the official documentation (log on or register)

3. The following is an Online DEMO (all the required parameters are self-registered for testing. Here they are in plain text and need to be processed in practice)

Https://wjf444128852.github.io/demo01/login/

Iv. Problems Encountered

After testing, this error occurs only when Google logs on to chrome (32-bit): {error: "popup_closed_by_user"}, and 64-bit chrome is also normal. All other browsers are normal.

There are also official issues: https://github.com/google/google-api-javascript-client/issues/405

Wait for resolution...

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.