0
我想添加一個Facebook按鈕到我的Chrome擴展,但嘗試時出現錯誤。 這裏是我的清單文件:如何添加Facebook按鈕到我的Chrome擴展
{
"name": "XXXXX",
"manifest_version": 2,
"version": "1.9",
"icons": { "128": "images/xxx.png" },
"background": {
"scripts": ["background.js"],
"page": "background.html"
},
"permissions": [
"tabs","bookmarks",
"http://*/*",
"https://*/*"],
"background": { "page": "background.html"},
"web_accessible_resources": [
"images/info.png"
],
"browser_action": {
"default_title": "Xxx",
"default_icon": "images/xxxx.png",
"default_popup": "list.html"
}
}
這是我想要添加的框架:
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&width&layout=standard&action=like&show_faces=true&share=true&height=80&appId=229499750441210" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe>
我應該爲了得到以下錯誤的乘駕做:
GET chrome-extension://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fdev…ard&action=like&show_faces=true&share=true&height=80&appId=229499750441210 net::ERR_FAILED
謝謝!這解決了我的問題:) – Hakan