SMF 2 and Facebook like button

Here is the problem,

Since SMF will add PHPSESSID at the URL for guest for 4 or 5 times first access, the facebook linter will return the URL with PHPSESSID and that would be undesired since it will not unique since PHPSESSID will be changing time to time and you won’t seeing the actual number of person click the like button.

And now is the solution,

In old days, SMF have similar issue when bot indexing SMF and it have been resolved. For Facebook we will use the same solution too. Just add the user-agent along with other bot.

Facebook said their linter come with facebooktexternalhist/1.1 user-agent string but the actual Like button it seems using other user-agent string. I just too lazy to open up the log so I just use facebook instead to capture the “linter” and it works.

Hope this will save you few hours of confusion that was happened to me.

Cheers

system-skyhigh