posting comment

May 4, 2011 at 8:18 AM

I'm in need of some help for using Api.PostComment(string PostID, string comment)

basically I have several post, and they'll be used like post.aspx?ID=xxx, but the url rewrite would be post/xx, so url would be something like

I would like to have comments on each individual post. since there's no post, there's no comment ID from facebook, so I suppose I'll use Api.PostComment to generate one, correct?

but what should I use for PostID from the Api.PostComment(string PostID, string comment)?

May 4, 2011 at 7:32 PM

The PostFeed method returns the PostID. You can then further use this PostID to post comments. See .

May 5, 2011 at 3:27 AM

thanks, Kayson.

How do I check the token is still valid?

what I did was I opened another web page and logged out facebook from there, then I have oAuthExcetion saying that access token is invalid


May 5, 2011 at 5:50 AM
Edited May 5, 2011 at 12:50 PM

You'd have to login again. Access Tokens automatically expires when the user logout from Facebook on OR any site that implements Facebook Connect.