Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make an API call to <POST_ID>/attachments for posts that do not return the Link property #21

Open
mukul-mehta opened this issue Dec 26, 2020 · 1 comment
Assignees

Comments

@mukul-mehta
Copy link
Member

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

@mukul-mehta
Copy link
Member Author

image
Here's an example of the information returned on calling /attachments on a post

@mukul-mehta mukul-mehta self-assigned this Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant