ios - Invite Users to A Mobile App Over Facebook -


i have ios app building uses rails server on backend (also building). @ point able invite users app, , think best way go via facebook.

the facebook sdk allows create native dialog directly communicates servers device, server control interaction.

so desired work flow this...

  1. user selects other fb friends invite
  2. device ships invited friend list (fb_uids) server
  3. server communicates facebook , sends out requests via fb platform
  4. invitee(s) notified in facebook they've been invited , provided deep link install app.

i've been looking while on tutorials / workflow - can't find anything. point me in right direction?

download facebook sdk first.

http://developers.facebook.com/ios/

then use following code:

facebook* facebook =     [[facebook alloc] initwithappid:@"your_facebook_app_id" anddelegate:self];  nsmutabledictionary* params = [nsmutabledictionary dictionarywithobjectsandkeys:                                        @"my title", @"title",                                        @"come check out app.",  @"message",                                        @"facebook_user_id", @"to",                                        nil];   [facebook dialog:@"apprequests" andparams:params anddelegate:self]; 

you can refer following url well:

http://developers.facebook.com/docs/reference/dialogs/requests/

hope you.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -