When I try to pass an FBSDKShareLinkContent to an FBSDKMessageDialog, it returns with warnings for some properties, saying that those are deprecated from Graph API 2.9.
'imageURL' is deprecated:
imageURLis deprecated from Graph API 2.9'contentTitle' is deprecated:
contentTitleis deprecated from Graph API 2.9'contentDescription' is deprecated:
contentDescriptionis deprecated from Graph API 2.9
What can I do in order to prevent this issue?
The methods that allow attaching a link to posts now retreive the image, the title and the description from proprietary meta tags and not from the code itself. Simply remove the lines to get rid of the warnings and set up the proper tags on the site itself.
See the exact deprecation changelog here.
So you are not alowed to use those properties anymore (graph 2.9) when you are sharing a link via facebook. All the informations facebook needs will be gathered from the "og" tags ("og:title", etc..) in the web page meta tags you want to share.
In the element of your web content you should have :
<meta property="og:title" content="your content"/>
<meta property="og:description" content="your content"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With