我能够获取用户配置文件的书籍,但我还需要书籍封面图片才能显示在我的网站上?
I am able to fetch the books of a user profiles, but i need books cover image as well to show on my website?
我在 php 中建立了一个新网站,我允许用户使用 facebook 注册。我正在获取所有信息,如书籍、电影、位置、旅行、签到等。我获取了所有信息,但我没有获取包含数据的封面图片。
$request = new FacebookRequest(
$session,
'GET',
'/me',
array(
'fields' => 'id,first_name,last_name,age_range,birthday,bio,education,email,about,gender,religion,relationship_status,hometown,music,books'
)
);
$response = $request->execute();
我看到很多网站都在用封面图片获取上述信息。我不确定他们是怎么做到的,如果他们使用其他 api 来获取封面图片或其他东西。
提前致谢。非常感谢任何帮助。
这个 API 电话会给你封面照片,如果有:
/me/books?fields=cover
或一次调用:
/me?fields=books{cover}
...这意味着,您只需要在字段参数中将 "books" 替换为 "books{cover}"。
我在 php 中建立了一个新网站,我允许用户使用 facebook 注册。我正在获取所有信息,如书籍、电影、位置、旅行、签到等。我获取了所有信息,但我没有获取包含数据的封面图片。
$request = new FacebookRequest(
$session,
'GET',
'/me',
array(
'fields' => 'id,first_name,last_name,age_range,birthday,bio,education,email,about,gender,religion,relationship_status,hometown,music,books'
)
);
$response = $request->execute();
我看到很多网站都在用封面图片获取上述信息。我不确定他们是怎么做到的,如果他们使用其他 api 来获取封面图片或其他东西。
提前致谢。非常感谢任何帮助。
这个 API 电话会给你封面照片,如果有:
/me/books?fields=cover
或一次调用:
/me?fields=books{cover}
...这意味着,您只需要在字段参数中将 "books" 替换为 "books{cover}"。