Search code examples
swiftfacebook-sdk-4.0

Facebook Invite Friends not working on swit 4.0?


Ive followed all the ways the internet tells me to invite friends using the facebook simulator but to alas it doesn't work.

let content = FBSDKAppInviteContent()
content.appLinkURL = URL(string: "testString")!
FBSDKAppInviteDialog.show(from: self.parent, with: content, delegate: self)

And its never working for me. The invite friends dialog does not appear. I am also using the simulator in XCOde. So my two questions are is there a different way I should be displaying the invite friends dialog? Also is there a specific set of instructions I need to follow to get the invite dialog to work on the simulator?


Solution

  • I think it's not possible to invite friends using facebook anymore.

    https://blog.markgrowth.com/deprecation-of-facebook-invitable-friends-graph-api-and-its-impact-on-organic-growth-f35677734b65