Want custom title / image / description in facebook share link

Posted by Ezop on Stack Overflow See other posts from Stack Overflow or by Ezop
Published on 2010-03-08T11:36:29Z Indexed on 2010/04/17 0:33 UTC
Read the original article Hit count: 1037

Filed under:
|

Hi!

I am making a flash app that demonstrates potensial traffic injuries when driving at different speeds. I want the user to be able to share this information on facebook. However this demands that i can customize the text that will appear on facebook in some manner.

I am making an url that is opened in a blank window (from the flash app itself). I specify the u and t parameters, putting the generated message as the t parameter. But this seems to always be overridden by the pages title. If i omit the title tag from the html code, the file name is used (also overriding the specified title).

http://www.facebook.com/sharer.php?u=http://espentokerud.com/face/addiste.html&t=test;

I also tried url-encoding the url, but to no avail.

http://www.facebook.com/sharer.php?u=http%3a%2f%2fespentokerud.com%2fface%2faddiste.html&t=test;

I also tried using the addthis API, but experience the same shortcomings. The funny thing is that if i post a swf, the title and description can be customized, and it is also possible to specify a screenshot. But if i dont post a swf, this seems to be ignored.

I am aware that I can use meta tags on the html page to specify the thumbnail image, title and description, but some of this content has to be based on calculations inside the flash app.

Can anyone help me out or point me in the right direction?

I am thankful for any help!

© Stack Overflow or respective owner

Related posts about facebook

Related posts about facebook-sharer