Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func inviteFacebookFriends(){
- let dialog = FBSDKAppInviteDialog()
- let content:FBSDKAppInviteContent = FBSDKAppInviteContent()
- content.appLinkURL = URL(string: "https://example/fbid")
- content.appInvitePreviewImageURL = URL(string: "http://www.queness.com/resources/images/png/apple_ex.png")
- dialog.content = content
- dialog.delegate = self
- do {
- try dialog.validate()
- }
- catch {
- print(error)
- }
- dialog.show()
- }
Add Comment
Please, Sign In to add comment