Facebook的:我可以编程方式添加好友? [英] Facebook: Can I Programmatically Add a Friend?

查看:198
本文介绍了Facebook的:我可以编程方式添加好友?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个Facebook API添加好友?我无法找到一个,但我找不到它说任何地方,没有一个,这似乎喜欢的事,很多人会问。

Is there a Facebook API to add a friend? I can't find one, but then I can't find it stated anywhere that there isn't one, and this seems like something a lot of people would be asking about.

(注意:我不是在谈论一个Facebook应用程序,而是一个基于HTTP的API)

(Note: I'm not talking about a Facebook application, but rather an HTTP-based API.)

澄清

我要指出,我试图做到这一点与用户的授权。他们给我自己的用户名和密码。没有试图垃圾邮件的人。

I should mention that I'm trying to do this WITH the users authorization. They give me their username and password. Not trying to spam anyone.

Twitter也有这样做的一个非常简单的API;我希望Facebook上确实做了。

Twitter has a very simple API for doing this; I'd hoped Facebook did too.

推荐答案

我不认为有一种方法可以做到这一点。这是基于用户的选择。最好的办法就是让用户推到相关个人资料,并让他们做的工作。

I do not think there is a way to do this. This is based on user's choice. The best bet would be to have the user pushed to the profile in question and have them do the work.

编辑:
你应该的从不询问Facebook的用户名和密码。这是违反了Facebook的条款和一个贫穷的设计选择。你应该使用他们的标准API,可以从Facebook访问数据/

You should never ask for a username and password for facebook. that is a violation of the terms of facebook and a poor design choice. you should use their standard api for accessing data to/from facebook.

这篇关于Facebook的:我可以编程方式添加好友?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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