0
manifest:
{
"manifest_version": 2,
"name": "Gmail Extension",
"version": "1.0",
"description": "Share your mail from Gmail on facebook.",
"browser_action": {
"default_icon": "gmail.png"
},
"background": {
"persistent": false,
"page":"background.html"
},
"permissions": ["<all_urls>"]
}
background.html:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_PT/sdk.js#xfbml=1&appId=326350284188834&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-share-button" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button"></div>
</body>
</html>
I’m trying to make a Chrome extension so users can share their gmail emails on facebook.
It turns out that importing into Chrome extensions doesn’t happen at all. What I’m doing wrong?