Invite Facebook friends through the iPhone app

I was looking for this question and I could not find anything that worked. I have an iPhone app that allows users to link their Facebook account. It will look something like this:

As soon as the user is successfully associated with the FB, I want to present them with a list of my FB friends and the opportunity to invite selected friends.

FB Friend 1 ........... Invitation | FB Friend 2 ........... Invitation | ...
FB Friend 1000 ..... Invite

Basically, I want to send a message to friends of FB who say something like "Check out this app." I am sure that this should go either to their notifications or to the wall, and cannot be an FB message, but I cannot figure out how to do this.

In addition, I do not need to select a group of friends for the invitation - this can be done one at a time. So it will look like this:

FB Friend 1 ........... invited by FB Friend 2 ........... Invitation | ...
FB Friend 1000 ..... Invite



Thanks so much for any help you can provide.

+4
source share
1 answer

Unfortunately, there is nothing in the iOS SDK to display the apprequests dialog, and the user had to install / approve your application before you can send notifications about them through a POST request ...

Inquiries are a great way to allow users to invite their friends, accept a gift, or help them complete a mission in your application. There are now two types of requests that can be sent from the application:

User requests . These requests are acknowledged by users with an explicit action in the request dialog box. These requests update the bookmark count for the recipient. You submit requests using the recently launched request dialog box.

Requests created using the application : These requests can only be initiated and sent to users who have allowed your application. Developers can send these requests using the Graph API. using these queries to update the number of bookmarks in order to encourage the user to reconnect to the application (for example, your friend has finished his turn in the game and now it's your turn).

The only way to get this is through the Facebook Requests 2.0 dialog box (which is currently not available for the iOS SDK for Facebook):

http://developers.facebook.com/blog/post/453

More details here in this related question ...

Submitting application requests that appear in the left column on the Facebook homepage?

+3
source

All Articles