我正在尝试使用Facebook的Graph API,但Books部分未返回任何内容。
这就是它在Facebook的Graph Explorer中返回的结果。
{
"data": [
]
}
无论如何,我只想拥有已经阅读并想要阅读的书籍,以在我的网站上显示名称和图像(书籍封面)。我需要哪种脚本?
最佳答案
您需要/me/book.reads
调用和user_actions.books
权限。您还需要在“书籍”部分中购买书籍。
{
"data": [
{
"id": "10101176585859437",
"from": {
"name": "Philippe Harewood",
"id": "13608786"
},
"start_time": "2013-05-26T20:06:43+0000",
"publish_time": "2013-05-26T20:06:43+0000",
"application": {
"name": "Books",
"id": "174275722710475"
},
"data": {
"book": {
"id": "109248589093974",
"url": "https://www.facebook.com/pages/The-Bourne-Ultimatum/109248589093974",
"type": "books.book",
"title": "The Bourne Ultimatum"
}
},
"type": "books.reads",
"no_feed_story": false,
"likes": {
"count": 0,
"can_like": true,
"user_likes": false
},
"comments": {
"count": 0,
"can_comment": true,
"comment_order": "chronological"
}
},
关于javascript - 如何将使用Facebook API阅读的书籍拉到网站上?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16762624/