How to add a friend programatically?

Mar 12, 2009 at 12:23 PM
Edited Mar 12, 2009 at 12:24 PM
Hello everybody,
Is there a way to post to addfriend.php with a web request.
Let's say I have the ID of the person I want to become friend with. How do I ask for friendship via code (not passing through FB's website).

Note: I found a discussion by a user asking how to user multifriend.php, and I tried to follow the same pattern, but couldn't succeed.

Thanks in advance!

Best Regards,