简体   繁体   English

使用JavaScript SDK的Facebook登录网络

[英]Facebook Login for the Web with the JavaScript SDK

I have create an application using asp.net. 我已经使用asp.net创建了一个应用程序。 It's live in server. 它在服务器中。 I want to login my app through Facebook. 我想通过Facebook登录我的应用程序。 That is if the user clicks the "Login with Facebook" he should be redirected to particular page. 也就是说,如果用户单击“使用Facebook登录”,则应将他重定向到特定页面。 After that he should be redirected back to my app with data(user details). 之后,应使用数据(用户详细信息)将他重定向回我的应用程序。 I have created an app in Facebook. 我已经在Facebook中创建了一个应用。 I have search a lot in internet but, didn't get the proper solution. 我在互联网上搜索了很多东西,但是没有找到合适的解决方案。

Step 1. Step 2. 步骤1。步骤2。

  • Go to https://developers.facebook.com 转到https://developers.facebook.com
  • On top header click on MY APPS > Add new App. 在顶部标题上,单击“我的应用”>“添加新应用”。
  • Click on App Detail tab > fill all the information. 单击“应用程序详细信息”选项卡>填写所有信息。
  • Click on Status/Review tab > "Do you want to make this app and all its live features available to the general public?" 单击状态/审查选项卡>“您是否要使该应用及其所有实时功能向公众开放?” change toggle button to "yes". 将切换按钮更改为“是”。
  • Copy the clientID.This ID will use in facebook login development. 复制clientID。此ID将用于Facebook登录开发。 For More Please Follow the Demo.Its working for me. 有关更多信息,请关注演示。它对我有用。 Facebook login demo Replace "XXXXXXXXXXXXX" with your APPID Facebook登录演示用您的APPID替换“ XXXXXXXXXXXXX”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM