该应用程序通过了Facebook批准,包括操作和相关对象,这一切似乎都是正确的.
对象创建和共享操作
// ############## OpenGraph - Arrive At a Marina// Photovar 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)// PropertIEslet 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]// Objectlet object = FBSDKShareOpenGraphObject(propertIEs: propertIEs as [NSObject : AnyObject])// Actionlet action = FBSDKShareOpenGraphAction(type: "smartsea:arrive_at",object: object,key: "marina")// Contentlet content = FBSDKShareOpenGraphContent()content.action = actioncontent.prevIEwPropertyname = "marina"// ShareFBSDKShareDialog.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=1684374595135519Please remove this link to continue.,error_description=An error occurred during publishing.,app_ID=xxxxxxxxxxxxxxxxxxxxx,error_code=102}
奇怪的是,错误URL是一个Facebook域,我没有直接分享这个URL.它似乎是在每次分享行动时产生的.
任何的想法?
谢谢!
http://www.technerves.com/2015/07/unblock-your-website-url-from-facebook.html
总结以上是内存溢出为你收集整理的从iOS共享Facebook Open Graph Action时出错(不安全链接)全部内容,希望文章能够帮你解决从iOS共享Facebook Open Graph Action时出错(不安全链接)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)