如何将带有评论和标签的 Facebook 相册直接嵌入到网页中?

发布于 2024-11-29 10:44:32 字数 138 浏览 0 评论 0原文

我希望能够直接在网页上嵌入带有评论和照片标记的 Facebook 相册。基本上我希望它看起来尽可能接近 facebook.com 上的样子。

到目前为止,我发现的唯一解决方案是仅嵌入相册中的图片,而无需评论或照片标记功能。谁能帮我指出正确的方向?

I want to be able to embed a facebook photo album complete with comments and and photo tagging directly on a webpage. Basically I want it to look as close as possible to the way it does on facebook.com.

So far the only solution I found is to just embed the pictures from the album without comments or photo tagging capabilities. Can anyone help point me in the right direction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

開玄 2024-12-06 10:44:32

如果能把这一切都包装好并准备好投入使用,那就太好了,但我还没有找到类似的东西。你必须获取所有信息,并使用你自己的CSS。

我使用 fql: http://developers.facebook.com/docs/reference/fql/
例如(这比我实际使用过的要多得多):

q0 = "SELECT aid,name,descripton FROM album WHERE owner="+theirID;
q1 = "SELECT pid,aid,src_small,caption,object_id FROM photo WHERE aid IN (SELECT aid FROM #q0)";
q2 = "SELECT fromid,text,id,username,likes FROM comment WHERE object_id IN (SELECT object_id FROM #q1)";
q3= "SELECT * FROM photo_tag WHERE pid IN (SELECT pid FROM #q1)";

FB.api( { method: 'fql.multiquery', queries: {"q0": q0,"q1":q1,"q2":q2,"q3":q3}}, function(re) {
// sort out the mess
// eg albumDescription = re[0].fql_result_set[item].description;
});

It would be neat to have this all wrapped up and ready to drop in, but I haven't found anything like that. You have to get all the info, and use your own css.

I use fql: http://developers.facebook.com/docs/reference/fql/
For instance (this is a lot more than I actually have ever used):

q0 = "SELECT aid,name,descripton FROM album WHERE owner="+theirID;
q1 = "SELECT pid,aid,src_small,caption,object_id FROM photo WHERE aid IN (SELECT aid FROM #q0)";
q2 = "SELECT fromid,text,id,username,likes FROM comment WHERE object_id IN (SELECT object_id FROM #q1)";
q3= "SELECT * FROM photo_tag WHERE pid IN (SELECT pid FROM #q1)";

FB.api( { method: 'fql.multiquery', queries: {"q0": q0,"q1":q1,"q2":q2,"q3":q3}}, function(re) {
// sort out the mess
// eg albumDescription = re[0].fql_result_set[item].description;
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文