0

I want to send individual invite to friends from my Native iOS app, through Facebook. It should contain Link and pre-filled invite message..Is it possible? What is the better approach. I referred FBAppInvite and FBSDKMessageDialog tutorial on https://developers.facebook.com/ , could not find anything which fulfils my requirement.

Can any one suggest some approach how to implement this?. I have not worked much on using social frameworks. Facebook implementation steps are not clear. I searched for demo or sample project on this, but could not find clear documents. Thanks in advance.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
user3575114
  • 993
  • 7
  • 13
  • 1
    Possible duplicate of [Facebook Messenger with dialog](http://stackoverflow.com/questions/33147608/facebook-messenger-with-dialog) – user3575114 Feb 22 '16 at 09:14

1 Answers1

0

for invitation read following link..

https://developers.facebook.com/docs/app-invites/ios

Maulik shah
  • 1,664
  • 1
  • 19
  • 45
  • hi, I referred that..but How to get App link in that..every time it is showing invalid app link. I used exiting app link from play store. – user3575114 Oct 26 '15 at 08:47
  • you must be create applinking in facebook – Maulik shah Oct 26 '15 at 09:07
  • 1
    https://developers.facebook.com/quickstarts/866112753470134/?platform=app-links-host using this link – Maulik shah Oct 26 '15 at 09:07
  • Thank you so much. Can you tell me why my friends are not getting notified or no getting any message for app invite? – user3575114 Oct 26 '15 at 11:04
  • If a previewImageURL is not set the invite will use Promotional Images from the App Details section in apps settings. The invite will not show if no images are available. – Maulik shah Oct 26 '15 at 11:20
  • I have added preview image. But still it is not showing invite. – user3575114 Oct 26 '15 at 11:33
  • FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init]; content.appLinkURL = [NSURL URLWithString:@"https://fb.me/randomnumbers"]; // content.previewImageURL = [NSURL URLWithString:@"http://ec2-107-21-15-206.compute-1.amazonaws.com:8000/static/event_placeholder.jpg"]; content.appInvitePreviewImageURL = [NSURL URLWithString:@"http://ec2-107-21-15-206.compute-1.amazonaws.com:8000/static/event_placeholder.jpg"]; [FBSDKAppInviteDialog showWithContent:content delegate:self]; – user3575114 Oct 26 '15 at 11:33
  • Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/93354/discussion-between-maulik-and-user3575114). – Maulik shah Oct 26 '15 at 11:37
  • @Maulik, i can send invites to my friends but they are not getting notified and i m getting the result as nil in "appInviteDialog:didCompleteWithResults:" delegate method can u please help out this – veeresh kumbar Apr 20 '17 at 10:20