Facebook Open Graph Apps

I have created a single page app using trunk js. I have separate "routes" backbone URLs for different application states and dynamic content (like books), but essentially Facebook will only see the index page.

The following SO question seems to present an interesting approach to providing physical open image URLs for dynamic content:

Multiple Facebook opengraph objects on one page

How have other developers approached open tags on dynamic pages, especially in single page apps?

+3


source to share


1 answer


You can have a server to render dynamic content for this, but you still need a different url for each object as that means facebook is indexing those objects.

However, you can use a portion of the request or a portion of the URL to identify it. So let's say you have one page where you want to serve all open objects of the graph: your-domain.com/og now you can add IDs like this to it:



your-domain.com/og?type=3&id=432543643
your-domain.com/og#type=653&id=46t43g3
your-domain.com/og?type=25id=4tn4g43#anotherstring

      

+2


source







All Articles