How to force Facebook Linter to rescrape page with cookies enabled?

I've been having a lot of problems with Facebook Like button lately. Specifically, when the user clicks Like button, the comment dialog does not show up, but instead an error link saying that "page could not be reached".

When Facebook Linter scrapes such a page, it gets a 302 which redirects linter to a URL with jsessionid=xxx appended. I assumed that Facebook handles 302 correctly and decided to configure Tomcat to store jsessionid as a cookie. Here is an example: http://galecsy.com:88/lrm/ms/oid/75009

I also assumed that Facebook Linter can handle cookies, because there is a cookies:true parameter to FB.init() as explained here: http://developers.facebook.com/docs/reference/javascript/

However, linter does not seem to preserve jsessionid cookie when it follows the 302 redirect. So, is there a way to force linter to respect cookies? If not, what is this cookies:true parameter on JS SDK for?

Answers


what is this cookies:true parameter on JS SDK for?

It makes the SDK store information about the login status in a cookie, so that it can easily be accessed on the server side on the next request (f.e. by the PHP SDK).

So, is there a way to force linter to respect cookies?

I don’t think so.

You should make your app work without requiring cookies.


Need Your Help

Can't compile Android/Java project using command line

java android command-line compilation

I'm new to using anything other than Eclipse for compiling Java projects. I am trying to use command line to compile a java file that uses Android but I have been unsuccessful.