0

I am Implementing app to invite friend

But it gives me below error

enter image description here

imjaydeep
  • 878
  • 1
  • 11
  • 34
  • Add the error in a text format, so that it can be searched as well. – Shamas S Feb 10 '16 at 04:01
  • [![Facebook had made major changes to there developer offerings. Which includes AppInvites ,Native Like Button, Comment Mirroring etc ](https://i.stack.imgur.com/LYdGi.png)](https://i.stack.imgur.com/LYdGi.png) [Which includes AppInvites ,Native Like Button, Comment Mirroring etc](https://developers.facebook.com/blog/post/2017/11/07/changes-developer-offerings/) – Prankush Mar 09 '18 at 06:10

2 Answers2

5

App invites are no longer supported by Facebook, see here.

App Invites will no longer be supported starting with Facebook SDK version 4.28 and above. Previous versions of the SDK can still access App Invites, but starting 2/6, App Invites will no longer be supported.

Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
2

OLD method is deprecated

Document : https://developers.facebook.com/docs/reference/ios/current/class/FBSDKAppInviteDialog/

New Method :

+ (instancetype)
showFromViewController: (UIViewController *)viewController
withContent:    (FBSDKAppInviteContent *)content
delegate:   (id<FBSDKAppInviteDialogDelegate>)delegate;

Declared In: FBSDKAppInviteDialog.h

showWithContent:delegate:

+ (instancetype)
showWithContent:    (FBSDKAppInviteContent *)content
delegate:   (id<FBSDKAppInviteDialogDelegate>)delegate
__attribute__((deprecated("use showFromViewController: withContent:delegate: instead")));
Declared In: FBSDKAppInviteDialog.h
Ashish Kakkad
  • 23,586
  • 12
  • 103
  • 136