我的社交网络的 API 实现

发布于 2024-10-03 16:53:32 字数 300 浏览 5 评论 0原文

我了解使用 PHP 进行代码开发,但对现代 Web API 知之甚少。我想实现一个像 Facebbok connect 这样的 API 框架。 Myspace 连接、Google 连接等有 2 个目的:

1) 用户可以将照片上传到他们的相册
2)其他网站可以使用我的网站的身份验证登录用户(类似于facebook/Google connect)。

那么首先,实现这一点的底线技术/服务器要求等是什么?我可以使用 PHP 吗?那么还需要哪些其他架构更改?我看到 facebook 有其他开发人员用于此目的的公共 API 密钥。但我不确定实施情况。

I know about code development using PHP but not much about modern day web APIs. I want to implement a framework of APIs like Facebbok connect. Myspace connect, Google connect etc for 2 purposes:

1) Users can upload photos to their photo album
2) Other websites can login users using authentication from my site (similar to facebook/Google connect).

So firstly, what is the underline technology / server requirements etc to implement this? Can i use PHP? Then what other schema changes are required? I see facebook has public API keys that other developers use for this. But I am not sure on the implementation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蓝天白云 2024-10-10 16:53:32

也许最好的起点是阅读 http://oauth.net/。我知道有多种 OAuth 实现采用多种语言(例如 Java 和 .NET)。我相信 PHP 是有用的(因为 Facebook 主要是 PHP)。只需点击谷歌即可。

Probably the best place to start is to read up on http://oauth.net/. I know there are several OAuth implementations in several languages like Java and .NET. I'm confident there is something for PHP (since Facebook is primarily PHP). Just have to hit the google.

携君以终年 2024-10-10 16:53:32

我不同意。人们使用 Facebook 是因为没有其他选择。我也用它(纯粹是为了向我的朋友们炫耀我周末坐在家里并不断发布我的一天有多棒的更新)。但如果我找到一个更好的网络(不是在功能方面而是在纯粹的信任方面,一个真正尊重其用户和人们共享信息的社交网络,我会切换。创建帐户没什么大不了的,需要 1 分钟。但信任是一旦破裂,我就很难再回来了。四年前,当我创建我的 Facebook 帐户时,我和 Facebook 就一次又一次地背叛了我。现在不再尊重它了,就像那个曾经多次欺骗你的伴侣,如果我找到了更好的东西,我就离开了,而我所有熟悉的朋友,今天你都希望它消失。也分享我的观点,毫无疑问,

我喜欢你尝试创造一些东西的想法,如果每个人都像这里的其他人一样思考,那么世界上就不会有进步。只做追随者,而不是领导者。谷歌会说,雅虎和微软是巨大的,让我们跟随他们。但他们花了时间,微调了他们的模式,今天他们比这些品牌更大。当然,这是一个不同的故事,他们是比 Facebook 更严重的老大哥,但有了权力,99% 的时间都是这些不道德的人想要接管世界。如果你能成为拥有权力的那 1% 的人,并且对你的用户保持忠诚,人们就会真正地追随你。

I disagree. People use facebook because there is no option out there. I use it too (purely to show off to my friends what a loser I am on weekends when I sit at home and keep posting updates of how awesome my day was). But if i find a better network (not in terms of features but pure trust, a social network that actually respects its users and the information people share, I will switch. Creating an account is no big deal, takes 1 minute. But trust is a life time thing. Once broken it rarely ever comes back. I see it like a relationship. When i created my facebook account 4 yrs ago i was in a relationship with facebook. They betrayed me time after time, year after year and I have no respect for it now. It is like that partner who has cheated on you so many times that today you wish it would just die and fade away. If I find something better and I am out, and all my friends whom I know well enough share my views too. So you will get users, no doubt.

I like your idea of trying to create something, this is how we grow. If everyone thinks like these other people here then there will be no progress in the world. Everyone will be a follower only and not a leader. Google would have said there is a yahoo and microsoft which is huge let's just follow them. But they took their time, fine tuned their model and today they are bigger than these these brands. Of course it is a different story they are a bigger offender of being a big brother than facebook but with power, 99% of the time comes these unethical minds who want to take over the world. If you can fall in the 1% who can have power and remain true to your users, people will follow you in a true sense.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文