tags:

views:

37

answers:

2

How do I create a custom description and image when im creating a share-link on my site? I know I can set title, url and an image with metatags, but that doesn't solve what i'm trying to do.

Facebook Share/Specifying Meta Tags

What I have seen other places and want to do is include a specific description and picture to the shared link. Like a quiz the user takes, and the result is posted along with the link, and a picture that changes along with the users score.

A: 

This doesn't work for you?

<meta name=”description” content=”content” />
stevebot
That works, but I want to post dynamic descriptions to facebook. Not the static meta-description.
Tommy
Use javascript to dynamically modify the content of your meta-tags.
stevebot
you can get the meta tags using: var metaElems = document.getElementsByTagName("meta");
stevebot
-1 : As it says in the title: not using any meta-tags.
Tommy
what is your requirement for not using meta tags? Sorry from your comment above I thought you requirement was dynamic data (no "static" meta tags) , and that was why meta-tags were insufficient (which isn't true).
stevebot
+1  A: 

You have to make a static page with that content, since the "share" action is Facebook hitting your page (not the user's browser).

Look at how the 'like' websites do it.

http://www.fblike.net/

They save the content in a DB, and make a unique page for each user submitted content.

Paul Tarjan
Yes, that would work. I was hoping for a solution that didn't involve any backend programming.
Tommy

related questions