For some posts such as those with Spotify links, there is no property with the name link returned. Hence we can't extract the Spotify URL directly. To fetch the URL, we need to call the edge /attachments on the post ID
So to get the attached URLs for such posts, we'll need to make 2 calls. One to <GROUP_ID>/feed that gives us all posts and then check if link exists. If not, we need to make a call to <POST_ID>/attachments to fetch the link attached with the post
For some posts such as those with Spotify links, there is no property with the name
link
returned. Hence we can't extract the Spotify URL directly. To fetch the URL, we need to call the edge/attachments
on the post IDSo to get the attached URLs for such posts, we'll need to make 2 calls. One to
<GROUP_ID>/feed
that gives us all posts and then check iflink
exists. If not, we need to make a call to<POST_ID>/attachments
to fetch the link attached with the post