0

How can I add friend from my facebook application using ajax call. I have used the following, but it redirects to another page which contain confirmation box.

<a target="_blank" href="http://www.facebook.com/dialog/friends/?id=FRIEND_ID&app_id=APP_ID&redirect_uri=REDIRECT_URL">
    ADD AS FRIEND
</a>

I want to send friend request as we are sending from anyone else profile page (Ajax call).

4

1 回答 1

0

可能这会有所帮助

<script> 
FB.ui({
    method: 'friends.add',
    id: fbid
}, function(param) {}); 
</script>​​
于 2012-04-10T11:16:01.727 回答