Facebook Application Send Friend request using Facebook Api

前端 未结 6 1962
青春惊慌失措
青春惊慌失措 2021-01-01 04:53

I want to send Facebook friend invitations to some of our friends list without using FBML tags ()

I am writing code in ASP.NET using

6条回答
  •  感动是毒
    2021-01-01 05:33

    I spent a great deal of time looking, and finally came accross a very simple solution.

    Using the Facebook Javascript API you can do a friend request with:

    
    

    The callback script can then simply performs an ajax call to your server where you save info about the action, if needed.

    You can test this by using the javascript console app on Facebook:

    http://developers.facebook.com/tools/console

    Paste in the script above, including the tags, or click the "Examples" button on the bottom of the text area and find the "fb.ui — friends.add" example.

提交回复
热议问题