将 Facebook 照片拉到外部网站上
我正在为 A 公司工作。我刚刚在 Django 中构建了他们的网站,但现在他们想向该网站添加社交照片管理功能(其他人可以上传)。
据我所知,这样做的唯一方法(以前也这样做过)是通过 Flickr。您可以建立一个群组并拥有它,以便任何人都可以向其中添加照片。并通过 RSS 获取最新内容。但说实话,Facebook 更受欢迎,我的客户希望他的客户大量使用此功能。
他们有一个 Facebook 页面,并且可以打开它,这样任何人都可以将他们的照片添加到其中......但是我如何将这些照片拉回网站呢?
I'm doing a job for Company A. I've just built their website in Django but now they want to add a social photo management aspect to the site (in that other people can upload).
The only way I know of doing this (having done it before) is through Flickr. You can set up a group and have it so anybody can add photos to it. And pull out the latest with RSS. But let's be honest, Facebook is far more popular and my client wants this feature heavily used by his clientèle.
They have a Facebook page and the power to open it up so anybody can add their photos to it... But how can I pull those photos back to the website?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Facebook 的查询语言可以为 FB 页面的用户做到这一点(就像 RSS 从 Flickr 向您发送数据一样),并且有一些 Javascript 可以使它们在外部网页上可见和交互。
例如:
http://www.codeofaninja。 com/2011/06/display-facebook-photos-to-your-website.html
http://www.alexanderinteractive.com/blog/2012/03/display-facebook-photos-on-your-website-with-galleria/< /a>
祝你好运!
特里
Facebook's query language can do this (like the RSS sends data to you from Flickr) for users of FB pages, and there are some Javascripts for making them viewable and interactive on external web pages.
For example:
http://www.codeofaninja.com/2011/06/display-facebook-photos-to-your-website.html
http://www.alexanderinteractive.com/blog/2012/03/display-facebook-photos-on-your-website-with-galleria/
Good luck!
Terry
我不确定这是否有帮助,但我记得 Flock Web 浏览器能够在浏览器的媒体流栏顶部加载新视频/照片流 - 也许您可以偷看一下内部工作原理它用来完成这个任务。
我知道您现在可以开始阅读 Facebook 页面本身的 RSS 提要,也许您只需要一点点解析即可: http://www.allfacebook.com/facebook-pages-rss-2010-01
I'm not sure if this will help, but I recall that the Flock Web Browser had the capability of loading a stream of new videos/photos on the top of the brower's media stream bar - perhaps you can sneak a peek into the inner workings it uses to accomplish this task.
I know that you can start reading the RSS feed of a Facebook Page itself now, perhaps just a little parsing is all you need: http://www.allfacebook.com/facebook-pages-rss-2010-01