Facebook like or share with dynamic document title Facebook like or share with dynamic document title ajax ajax

Facebook like or share with dynamic document title


Facebook is actually using #! now and it works! If you build your site so that http://site.de/?_escaped_fragment=something is identical to http://site.de/#!/something all you have to do is "share" the #! url and it'll display the info from the escaped fragment page.
Use this URL to check: http://developers.facebook.com/tools/debug

But: A much cleaner solution to the problem can be found here: http://github.com/browserstate/history.js/wiki/Intelligent-State-Handling


My guess would be that Facebook's crawler doesn't run Javascript and will always display whatever's actually in the page it gets from the server.


Facebook share has a BRUTAL cache, last time I checked it was impossible to change the title / description data once it was scraped :(