I am trying to integrate a Meteor app with Facebook Open Graph to post actions on a timeline.
The Facebook API works by defining the meta tags of the objects in the HTML header that the API will read. For instance:
<head prefix="og: http://ogp.me/ns# [YOUR_APP_NAMESPACE]: http://ogp.me/ns/apps/[YOUR_APP_NAMESPACE]#"> <title>OG Tutorial App</title> <meta property="fb:app_id" content="[YOUR_APP_ID]" /> <meta property="og:type" content="[YOUR_APP_NAMESPACE]:recipe" /> <meta property="og:title" content="Stuffed Cookies" /> <meta property="og:image" content="http://fbwerks.com:8000/zhen/cookie.jpg" /> <meta property="og:description" content="The Turducken of Cookies" /> <meta property="og:url" content="http://fbwerks.com:8000/zhen/cookie.html"> </head>
However, what the Facebook API sees when checking any URL looks something like this:
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="/ed99236548322b46a7562b49cd6ee0e0f059e506.css"> <script type="text/javascript" src="/c16ff21884b1f831d91ebf271236ef78b03b552e.js"></script> <title>Made with Meteor!</title> </head> <body> </body> </html>
What is the best way to integrate these meta tags, which may vary depending on the URL in the Meteor app?
source share