我有aid
和user_photo
权限,我想要照片的来源。所以我这样做:
select source from photo where id = ID_PHOTO
它不起作用。我该怎么办?
答案 0 :(得分:0)
没有列id
我认为你想要pid
(用引号括起照片id,pid是一个字符串)
select src from photo where pid = "ID_PHOTO"
编辑:
看起来pid也不起作用。如果pid不起作用,请尝试使用object_id。
select src from photo where object_id = "ID_PHOTO"
答案 1 :(得分:0)
您应该使用Graph API。以下是它的工作原理:
获取相册:https://graph.facebook.com/me/albums?access_token=...
获取照片:https://graph.facebook.com/me/photos?access_token=...
要获取特定相册中的照片:https://graph.facebook.com/*[album_id_here]*/photos?access_token=...