I've been researching this and found that Facebook does not mention that its spider has the ability to run javascript. This means that javascript injection of OpenGraph headers (these are the header META tags that make your page act just like a Facebook "Page" - a good thing) will not work.

See, Facebook requires that your page include these headers in order for your page to act just like a Facebook "Page". Without them, your page will not be included in the "social stream" when a user clicks the "Like" button. (bummer)

So, the next area of research is to find the best way to add header tags server-side. The only catch is this: I have to know what post number is being viewed so the proper OpenGraph META tags can be built for each particular post that includes a "Like" button.

This will require me to know more about the UBB Threads architecture.

Does anyone have tips on where I can learn more about this?

In short, I need to know how to insert header tags server-side. Perhaps showflat.inc.php is the key, as you mentioned.

Also, I need to be able to know what post number is currently being viewed. Since I'll be in PHP (I assume), then I can _GET[] the "Number" element on the query string, but perhaps there's a better "UBB Threads"-ish kind of way???

Thanks in advance!

---

The process will be something like this:

1. Get post number

2. Search the database to see if any OpenGraph META tags are supposed to be associated with this post number.

3. If so, insert the appropriate META tags for this post number.


Today they call you "crazy".
Tomorrow they call you "ahead of your time".