Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Facebook support Hash Bang #! Ajax Crawlable Urls?

Does Facebook support Google's ajax crawling specification and, if so, what do you need to do to implement it?

I am trying to get the Facebook "Like" button to work with AJAX crawlable urls as defined here: code.google.com/web/ajaxcrawling/docs/specification.html

I have this url which I can go to directly and it loads. Note the "#!" in the url:

http://www.idkshouldi.com/?#!idkDetails_idkKey=agppZGtzaG91bGRpcmMLEiljb21faWRrc2hvdWxkaV93ZWJfc2VydmVyX2dhZV9vYmpfSWRrVXNlciIDamltDAsSKWNvbV9pZGtzaG91bGRpX3dlYl9zZXJ2ZXJfZ2FlX29ial9JZGtJdGVtGN6kBgw

When I "Like" this page it should crawl this "escaped fragment" url:

http://www.idkshouldi.com/?_escaped_fragment_=idkDetails_idkKey=agppZGtzaG91bGRpcmMLEiljb21faWRrc2hvdWxkaV93ZWJfc2VydmVyX2dhZV9vYmpfSWRrVXNlciIDamltDAsSKWNvbV9pZGtzaG91bGRpX3dlYl9zZXJ2ZXJfZ2FlX29ial9JZGtJdGVtGN6kBgw

Why won't it crawl this page? The Facebook linter is not properly crawling my page. If one uses the Facebook linter tool here: developers.facebook.com/tools/debug

It won't properly crawl an AJAX enabled URL with the "#!" in it. This is Google's specification. What Facebook's lint crawler needs to do is to replace the "#!" with "_escaped_fragment_". It doesn't appear to do that with my AJAX enabled links.

like image 948
Jim Nguyen Avatar asked Oct 28 '11 19:10

Jim Nguyen


People also ask

Does hash tag work on Facebook?

Do hashtags work on Facebook? Yes, hashtags are working on Facebook. Although they are not so popular as on other social media platforms, you can add them to your posts. Facebook hashtags work the same as hashtags on other social platforms.

How do you do hash on Facebook?

This helps people find posts about topics they're interested in. To make a hashtag, write # (the number sign) along with a topic or phrase and add it to your post. For example: I walked up so many hills today!

Are Facebook hashtags 2022 useful?

Including hashtags in your posts means taking part in a conversation happening on that social media platform. And most importantly, it makes your posts visible in that conversation. This can lead to greater engagement, boosting your brand's social media engagement through likes, shares, comments, and new followers.

Should you use hashtags on Facebook 2021?

Hashtags On Facebook ARE A MUST The social media giant has said hashtags can increase engagement levels, and increase organic reach. That means more people seeing content within their news feeds, and more ways for content to be found via the search tool on Facebook.


1 Answers

This is also a big problem for me, but unfortunately it appears Facebook does not support this Google URL notation. Facebook's crawler/parser does not translate from hash bang (#!) to an _escaped_fragment_ format URL.

Like you I have tested my page on Facebook's URL linter and it only picks up static Open Graph tags within the dynamic original page, rather than the page-specific Open Graph tags in the _escaped_fragment_ server-side variant of my page. Unfortunately, this means that Facebook sees my Open Graph tags as site-specific, rather than page specific.

It is rather an irony that this appears to be unsupported as Facebook uses this approach itself to allow Google's crawlers to pick up Facebook pages.

One potential workaround, that may help you a little bit, is:

1) Use your _escaped_fragment_ page version in Facebook links 2) Add an automatic redirect to your _escaped_fragment_ variant to the proper version.

This should mean that Facebook will pick up the proper meta tags, and the user will click the link and end up on the correct page. The downside of this approach is that the user has to know the rather ugly _escaped_fragment_ URL. In other words, it will probably only be you that knows it, unless you add some sort of 'generate shareable link' button to your page.

It is surely only a matter of time before Facebook adds support for this as single-page hash bang sites are only going to become more prevalent.

like image 169
Seven Days Avatar answered Oct 04 '22 00:10

Seven Days