<script type="text/javascript">
google.load("gdata", "2.x");
google.setOnLoadCallback(getMyBlogFeed);
var feedUrl = "http://feeds.feedburner.com/WorldOfWidgetsAndGadgets"
var myService;
function setUpService() {
var myService = new google.gdata.blogger.BloggerService('exampleC');
logMeIn();
return myService;
}
function getMyBlogFeed() {
myService = setUpService();
myService.getBlogPostFeed(feedUrl, handleMyFeed, handleError);
}
function logMeIn() {
scope = "http://www.blogger.com/feeds";
var token = google.accounts.user.login(scope);
}
function handleMyFeed(myResultsFeedRoot) {
alert("This feed's title is: " + myResultsFeedRoot.feed.getTitle().getText());
}
function handleError(e) {
alert("There was an error!");
alert(e.cause ? e.cause.statusText : e.message);
}
</script>
This little code which in general is a copy from the Google Sample Code is giving me nightmares. Somehow it refuses to authenticate my application even though I have a google account and a related blogger account. I could not find any reason for this malfunction as it keeps showing the same authentication page again and again. I have tried to run this code from my localhost as well as a web-server. To no avail.
I will revisit this problem in a couple of days , until then I have a little mash up code to write dealing with you tube and jquery.
Saturday, 13 March 2010
Google Authentication Problems
Subscribe to:
Post Comments (Atom)






No comments:
Post a Comment