从iOS共享Facebook打开图形操作时出错(不安全链接)

从iOS共享Facebook打开图形操作时出错(不安全链接),ios,facebook,facebook-graph-api,sdk,facebook-opengraph,Ios,Facebook,Facebook Graph Api,Sdk,Facebook Opengraph,我试图通过官方iOS SDK(最新版本)共享Facebook Open Graph操作,但几天来,此操作返回错误,现在已停止工作。 该应用程序通过了Facebook的批准,包括操作和相关对象,看起来都是正确的 对象创建和共享操作 // ############## OpenGraph - Arrive At a Marina // Photo var photoURL = "" if let image = firstMarina.images.first { photoURL = i

我试图通过官方iOS SDK(最新版本)共享Facebook Open Graph操作,但几天来,此操作返回错误,现在已停止工作。 该应用程序通过了Facebook的批准,包括操作和相关对象,看起来都是正确的

对象创建和共享操作

// ############## OpenGraph - Arrive At a Marina

// Photo
var photoURL = ""
if let image = firstMarina.images.first {
    photoURL = image.width1440
} else {
    photoURL = "https://fbstatic-a.akamaihd.net/images/devsite/attachment_blank.png"
}
let photo = FBSDKSharePhoto(imageURL: NSURL(string: photoURL)!, userGenerated: false)

// Properties
let properties = [
    "fb:app_id": "xxxxxxxxxxxxxxxxxxxxx",
    "og:locale": NSLocale.preferredLanguages()[0].stringByReplacingOccurrencesOfString("-", withString: "_"),
    "og:type": "smartsea:marina",
    "og:title": firstMarina.name!.text,
    "og:description": firstMarina.desc!.text,
    "og:image": [photo],
    "place:location:latitude": firstMarina.location!.lat,
    "place:location:longitude": firstMarina.location!.lng
]

// Object
let object = FBSDKShareOpenGraphObject(properties: properties as [NSObject : AnyObject])

// Action
let action = FBSDKShareOpenGraphAction(type: "smartsea:arrive_at", object: object, key: "marina")

// Content
let content = FBSDKShareOpenGraphContent()
content.action = action
content.previewPropertyName = "marina"

// Share
FBSDKShareDialog.showFromViewController(self, withContent: content, delegate: self)
并返回错误

Error Domain=com.facebook.Facebook.platform Code=102 "(null)" UserInfo={error_reason=The content you're trying to share includes a link that our security systems detected to be unsafe:

https://m.facebook.com/appcenter/smartsea?fbs=9909&fb_object_id=1684374595135519

Please remove this link to continue., error_description=An error occurred during publishing., app_id=xxxxxxxxxxxxxxxxxxxxx, error_code=102}
奇怪的是,错误的URL是一个Facebook域名,我没有直接分享这个URL。它似乎是随着每一次股票交易而产生的

有什么想法吗?
谢谢

不幸的是,我不能发布一条简单的评论,所以我不得不将其作为“答案”发布。我找到了这篇文章。这是关于被阻止的URL,但不幸的是,不是关于被阻止的“Facebook”URL。我希望这能有所帮助


由于以下原因,It连接可能被阻止。应用程序传输安全性是iOS9中引入的一个新事物。 它会阻止与不符合某些安全要求(如最低TLS版本等)的服务器的连接


请从info.plist关闭ATS后重试。请看这张显示如何关闭ATS的图片。

请问,有人能帮我吗?很遗憾,我已经尝试过了,但我仍然有同样的问题。谢谢支持没有回应。。。我会再试一次这与Facebook无关,但谢谢你!