David Kimura PRO said almost 3 years ago on Like Relationships and Global ID :
  you're looping through all of the liked posts, so you would need to call post.to_sgid instead of @liked_post.to_sgid