Guest User

Untitled

a guest
Jul 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. func inviteFacebookFriends(){
  2.  
  3. let dialog = FBSDKAppInviteDialog()
  4. let content:FBSDKAppInviteContent = FBSDKAppInviteContent()
  5. content.appLinkURL = URL(string: "https://example/fbid")
  6. content.appInvitePreviewImageURL = URL(string: "http://www.queness.com/resources/images/png/apple_ex.png")
  7. dialog.content = content
  8. dialog.delegate = self
  9. do {
  10. try dialog.validate()
  11. }
  12. catch {
  13. print(error)
  14. }
  15.  
  16. dialog.show()
  17. }
Add Comment
Please, Sign In to add comment