0

크롬 확장에 페이스 북을 추가하고 싶지만 오류가 발생합니다. 이것은 내가 추가 할 프레임이내 크롬 확장에 Facebook과 같은 페이스 북을 추가하는 방법

{ 
    "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&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=80&amp;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 

답변

2

chrome-extension://www.facebook.com을 URL로 사용하는 방법에 유의하십시오. URL을 //으로 시작하면 브라우저에 현재 프로토콜을 사용하도록 지시하기 때문입니다. Chrome 확장 프로그램은 chrome-extension 프로토콜을 사용하므로 작동하지 않습니다. iframe이를 업데이트

봅니다

<iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&amp;width&amp;layout=standard&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=80&amp;appId=229499750441210" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:80px;" allowTransparency="true"></iframe> 
+0

당신을 감사 할 수 있습니다! 이 내 문제를 해결 :) – Hakan

관련 문제