我怎样才能用social-feed.js抓取附件url?

How can I grab the attachment url with social-feed.js?

我正在使用 social-feed.js 通过 Instagram 将图片导入模板。

现在,唯一的方法是使用:

{{=it.attachment}}

输出图像元素。对于熟悉此库的任何人,是否有一种未记录的方法来仅捕获 src url?

例如。 {{=it.attachment_src}}

对于遇到此问题的任何人,我解决它的方法是在 533 处添加一个新行。

post.attachment_src = element.images.standard_resolution.url;

如果你想在其他社交网络上实现同样的效果,你也需要将这一行添加到代码中的那些部分。