Possible Duplicate:
Fa开发者_如何学编程cebook Connect and Photo Albums
I am developing a site for models and they will be able to upload pictures.
I want to know is it possible to use Facebook Connect to get the user's photo albums, to save the user from re-uploading all the photo's that are already on FB?
Yes, it's possible. The process would look something like this -
- prompt facebook connect / permission popup
- on successful login, facebook gives you a user id and an access token
- using that id and token (big string of numbers and letters) you can formulate a request the user's photos
- loop through the result of that request, pulling out each photo URL and caption or whatever
- use some kind of server-side language to save those photos somewhere.
The bigger challenge is how check if particular picture matches another one from the album? If you know solution to this problem then running FQL on photo
and album
tables should provide all the info about photos.
精彩评论