LeonardoCardoso / SwiftLinkPreview

It makes a preview from an URL, grabbing all the information such as title, relevant texts and images.
https://leocardz.com/swift-link-preview-5a9860c7756f
MIT License
1.37k stars 197 forks source link

Facebook post images are always invalid #120

Open muzamil999 opened 4 years ago

muzamil999 commented 4 years ago

I am trying to create a preview from a Facebook post

https://www.facebook.com/AmmaraKhanOfficial/photos/a.748587865188148/3176470215733222/?type=3&theater&_rdc=1&_rdr

It is a public post. But the data returned from slprequest is as follows

Optional(https://www.facebook.com/AmmaraKhanOfficial/photos/a.748587865188148/3176470215733222/?type=3&theater&_rdc=1&_rdr),

finalUrl: Optional(https://www.facebook.com/AmmaraKhanOfficial/photos/a.748587865188148/3176470215733222/?type=3&theater&_rdc=1&_rdr),

canonicalUrl: Optional("www.facebook.com"),

title: Optional("Ammara Khan"),

description: Optional("A fine medley of the abstract, bold florals, coral and shell. This unique psychedelic print is tailored as a fun, breezy kaftan with tassles to add..."),

images: Optional(["https://scontent.flhe5-1.fna.fbcdn.net/v/t1.0-9/107871064_3176470219066555_7399768886287385835_o.jpg"]),

image: Optional("https://scontent.flhe5-1.fna.fbcdn.net/v/t1.0-9/107871064_3176470219066555_7399768886287385835_o.jpg"),

icon: Optional("https://static.xx.fbcdn.net/rsrc.php/yz/r/KFyVIAWzntM.ico"), video: nil, price: nil)

whenever trying to fetch images from the provided data, It always return null

deepam1212 commented 4 years ago

any luck on this?