Facebook连接和相册 [英] Facebook Connect and Photo Albums
问题描述
基本上,将有一个设施,用户将能够上传他们的照片。我想知道是否可以使用Facebook Connect获取用户的相册,以便保存用户不要重新上传已经在FB上的所有照片?
如果是这样,我/我应该链接到这些照片,或者从Facebook上切换他们,并将副本保存在我的服务器上?
编辑:只是为了澄清,是我想做的:
- 用户将在我的网站上注册,并同意将自己的Facebook ID与我的网站相关联。
- 然后,我想向用户显示Facebook上所有相册的列表,然后用户可以选择要在我的网站上显示哪些相册。
- (可选)用户可以选择要在我的网站上显示的每个相册中的哪些特定照片。
做什么
您可以使用API上传照片。请查看: http://developers.facebook.com/docs/reference/api/photo
如果是我,我只需将照片上传到Facebook,并保存图像的URL,而不是将其存储在我自己的服务器上。你可以做任何一个,但我看不到有意义的是存储图像两次。一个问题可能是如果你想要的照片质量高于Facebook,但质量相当高。
I am currently developing a site for models/actors, and at this point I am just trying to ascertain what I can and can't do with Facebook Connect (I have virtually no experience in using Facebook Connect or FQL).
Basically there is going to be a facility whereby users will be able to upload their pictures. I want to know is it possible to use Facebook Connect to get the user's photo albums, in order to save the user from re-uploading all the photo's that are already on FB?
If so, do I/should I LINK to these photos, or FETCH them from Facebook and save a copy on my server?
EDIT: Just to clarify, this is what I want to do:
- User will register on my site and agree to associate their Facebook ID with my site.
- I then want to present the user with a list of all their albums that are on Facebook, the user can then select which albums they want to display on my site.
- (optional) The user can select which specific photos in each album they want to display on my site.
Is this possible to do at all?
You can upload photos using the API. Check out this: http://developers.facebook.com/docs/reference/api/photo
If it were me, I would just upload the photo to Facebook and save the URL of the image rather than store it on my own server. You could do either one, but I don't see the sense is storing the image twice. The one issue could be if you wanted your photo at a higher quality than Facebook allows, but their quality is pretty high.
这篇关于Facebook连接和相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!