views:

1153

answers:

3

Does their API allow my Facebook-connected user to add a friend?

+6  A: 

No. Adding friends is not possible through the API.

However you can direct users to http://www.facebook.com/addfriend.php?id=[USER UID]

Where [USER UID] is a valid facebook user id.

Good luck!

Gdeglin
A: 

Here is a Wiki list of the API methods available to you http://wiki.developers.facebook.com/index.php/API#Administrative_Methods

Doesn't look like you can add friends via the API. Note the iPhone facebook app also doesn't have an add friends function, it was written via the API, so that lends more weight to the idea that you can't

Tim Jarvis
A: 

A related question, has anyone found it possible to use http://www.facebook.com/addfriend.php?id=[USER UID] with several ids together to add multiple friends on the same page? I tried some of the usual delimiter suspects with no joy