可以从我自己的应用程序发送Facebook的朋友请求吗?

问题描述:

我正在创建一个应用程序,并想知道我的应用程序是否可以发送一个Facebook的朋友请求(说我知道其他用户的id / name)或者Facebook不允许这样做?

I am creating an app and want to know if my app can send a Facebook friend request (say I know the other users id/name) or does Facebook not allow this?

简短的答案是no。

Facebook API不允许以编程方式发送朋友请求,但是通过一些工作,您可以使用WebView通过Javascript加载朋友请求对话框(有关请求对话框的信息,请查看 https://developers.facebook.com/docs/reference/dialogs/requests/ )。

The Facebook API does not allow you to programmatically send friend requests, but with some work, you may be able to use a WebView to load a Friend Request dialog via Javascript (For info on the request dialog, check https://developers.facebook.com/docs/reference/dialogs/requests/).