如何使用ASP.NET核心的Facebook帐户工具包? [英] How to use Facebook account kit with ASP.NET core?

查看:96
本文介绍了如何使用ASP.NET核心的Facebook帐户工具包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了facebook关于将Facebook帐户套件与网络应用程序一起使用的官方文章,但它适用于PHP和NodeJS。我不知道NodeJS和PHP,所以我不能将那个东西转换成.NET世界。任何人都可以帮我吗?



官方文档链接

适用于网络的Facebook帐户套件



我尝试过:



我不知道php和NodeJS我怎么试试?

I read facebook official article about using Facebook account kit with web apps , but it is for PHP and NodeJS. I don't know about NodeJS and PHP so I can not convert that thing to .NET world. Can anyone help me with this ?

Official documentation link
Facebook Account Kit for Web

What I have tried:

I don't know php and NodeJS how can I try ?

推荐答案

没有人有兴趣为全功能团队付费为每个特定平台创建一个API - 我是一个ASP.NET核心开发人员,我讨厌这样一个事实,即可以使用很少的框架和API来实现工作。



但是,由于没有这样的库,您需要使用的是REST API。您应该查看PHP文档或简单的基于Web的解决方案,并查看请求方法和所需的参数等。然后您可以使用 HttpClient 对象手动将请求发送给它会完美的。这正是每个API正在做的事情。



No one is interested in paying for a full featured team to create an API for every particular platform — I am an ASP.NET Core developer, and I hate the fact that there are very less frameworks and APIs available to get things working.

However, since there is no such library, what you need to use is REST API. You should look in the PHP documents, or simple web based solutions and see the request methods and required parameters etc. You can then send the request to it manually using HttpClient object and it would work perfectly. That is exactly, what every API is doing.

using (var client = new HttpClient()) {
    // Send the requests
}



此外,Facebook还提供了可用于此的JavaScript SDK,< a href =https://developers.facebook.com/docs/javascript/quickstart> JavaScript SDK [ ^ ],在页面上加载事件并从Facebook服务器请求数据。


Also, Facebook provides JavaScript SDK that you can use for this as well, JavaScript SDK[^], utilize this on the page load events and request data from Facebook servers.


这篇关于如何使用ASP.NET核心的Facebook帐户工具包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆