1 message in com.googlegroups.bloggerdevRe: [bloggerDev] "feed has no entry p...
FromSent OnAttachments
Saad Quader25 Jan 2008 15:48 
Subject:Re: [bloggerDev] "feed has no entry post link" error using javascript client library
From:Saad Quader (saad@gmail.com)
Date:01/25/2008 03:48:26 PM
List:com.googlegroups.bloggerdev

Hi again.

I have gone round the problem using BloggerService.insertEntry(targetUri, entry, successCallback, failureCallback) method for both feed posting and blog entry posting.

Here, targetUri = the entryPostUri obtained throth a call to BlogEntry.getEntryPostLink(). Below is the snippets:

----------------------------------------------------------------------------------------------------------------------- var blogs = myBlogPostFeedRoot.feed.getEntries(); for( var i = 0; i < howManyBlogs; i++ ) { var blog = blogs[i]; // a BlogEntry object var blogEntryPostUri = blog.getEntryPostLink().getHref(); ... ... }

----------------------------------------------------------------------------------------------------------------------- var title = document.getElementById("NewEntryTitle").value; var content = document.getElementById("NewEntryContent").value; //var blogEntry = createNewEntry(title, content); var blogEntry = new google.gdata.blogger.BlogPostEntry(); blogEntry.setTitle(google.gdata.Text.create(title)); blogEntry.setContent(google.gdata.Text.create(content,'html'));

// selectedBlogEntryPostUri is the postUri for the se lected blog entry. blogService.insertEntry(selectedBlogEntryPostUri, blogEntry,handleMyInsertedEntry, handleError);

-----------------------------------------------------------------------------------------------------------------------

Handling comment posting worked the same way, using BlogCommentEntry.getEntryPostLink() to get targetUri.

However, I still don't know why the prescribed way in the developers' guide did not work.

Regards, Saad

Hi, I am trying the Blogger javascript developers' guide (http:// code.google.com/apis/blogger/developers_guide_js.html#CreatingPosts). Below is the code I am talking about:

------------------------------------------------------------------------------------------------ function onPostNewEntry() { if(selectedBlogPostFeedRoot == "") { alert("Please select a blog to post this entry."); } else { var title = document.getElementById ("NewEntryTitle").value; var content = document.getElementById ("NewEntryContent").value; var atomEntry = createNewEntry(title, content); var blogEntry = new google.gdata.blogger.BlogPostEntry(atomEntry); selectedBlogPostFeedRoot.feed.insertEntry (blogEntry, handleMyInsertedEntry, handleError); } }

------------------------------------------------------------------------------------------------

But unfortunately, the insertEntry() request is invariably invoking the handleError callback with the following error message: "feed has no entry post link".

I guess (as suggested in another post regarding this error message in calendar api) that it could be some problem with login, where I (somehow) do not have required authority to "write" in the feed (as if the feed is read only). However, I can login alright, and is there any more procedure to have "write" privilege?

What could be the problem? Please help me if you can.

Thank you.