I have modified my code a bit. I have this code in my popup.html. And
getting following error:
Cannot read property 'chromeExOAuthConfig' of null
Screensot:
http://i.stack.imgur.com/T29w0.png
<script type="text/javascript" src="chrome_ex_oauthsimple.js"></
script>
<script type="text/javascript" src="chrome_ex_oauth.js"></script>
jQuery(function() {
'consumer_key': '---',
'consumer_secret': '---',
'scope': '',
'app_name': 'Tweet'
});
jQuery('#connect').click(function (){
oauth.authorize(install);
});
});
function install() {
alert('success')
}
function callback(resp, xhr) {
// ... Process text response ...
};
Following is my manifest.json file
{
"name": "Tweet",
"version": "1.0",
"description": "Tweet.",
"browser_action": {
"default_icon": "icon.png",
"popup": "popup.html"
},
"permissions": [
"tabs",
"
http://ajax.googleapis.com",
"*://*.
twitter.com/*",
"clipboardWrite"
]