I am sharing a Facebook post using FBSDKShareKit framework using FBSDKShareLinkContent. I am setting the content's imageURL to load an image for the post to be shared. The problem is, when I am sharing the post while on a mobile internet/3G connection, the link's image is not loading and shared on the post. Meanwhile, it is working fine when sharing the link while on a Wifi connection. To further illustrate, please refer to the screenshot below:
Screenshot: https://i.stack.imgur.com/TQNBE.png
My apologies as I can't post images yet due to my reputation.
I am using the following code to make and share the content.
let content:FBSDKShareLinkContent = FBSDKShareLinkContent()
content.contentURL = NSURL(string: linkURL)
content.contentTitle = nsTitle as! String
content.contentDescription = nsDesc as! String
content.imageURL = NSURL(string: imageURL)
let button:FBSDKShareButton = FBSDKShareButton()
button.frame = CGRectMake(0, 0, 0, 0)
button.shareContent = content
button.sendActionsForControlEvents(UIControlEvents.TouchUpInside)
Any ideas?
Thanks in advance.