Search code examples
iosswiftfbsdkfbsdksharekit

"deprecated from Graph API 2.9" warnings for FBSDKShareLinkContent properties


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: imageURL is deprecated from Graph API 2.9

'contentTitle' is deprecated: contentTitle is deprecated from Graph API 2.9

'contentDescription' is deprecated: contentDescription is deprecated from Graph API 2.9

What can I do in order to prevent this issue?


Solution

  • 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.