Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Want custom title / image / description in facebook share link from a flash app [duplicate]

Possible Duplicate:
How does Facebook Sharer select Images?

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.

like image 675
Ezop Avatar asked Mar 08 '10 11:03

Ezop


People also ask

How do I change the title of my link on Facebook?

Editing Within FacebookAfter you paste the text URL into the status update field, click your mouse over the existing title and description to open them for editing. Type in the desired title and description and hit "Enter" after you finish editing each to make the edits permanent.

How do I share a photo on Facebook with a link?

Click the “upload image” link under the thumbnail. Select an image from your computer. It's way more visually appealing! And when others hit “share” on your post, the engaging photo is shared along with the LINK to the article or action page!

How do I change the share button photo on Facebook?

right click on the button that you want to change "Inspect element" and find out if it really is an image or a CSS if it's an image find where the image is and upload your file with the same name ontop of the old one or if it's a CSS look for a button generator in google and just paste the code from there.


2 Answers

2016 Update

Use the Sharing Debugger to figure out what your problems are.

Make sure you're following the Facebook Sharing Best Practices.

Make sure you're using the Open Graph Markup correctly.

Original Answer

I agree with what has already been said here, but per documentation on the Facebook developer site, you might want to use the following meta tags.

<meta property="og:title" content="title" /> <meta property="og:description" content="description" /> <meta property="og:image" content="thumbnail_image" /> 

If you are not able to accomplish your goal with meta tags and you need a URL embedded version, see @Lelis718's answer below.

like image 109
Snekse Avatar answered Sep 17 '22 14:09

Snekse


I think this site has the solution, i will test it now. It Seems like facebook has changed the parameters of share.php so, in order to customize share window text and images you have to put parameters in a "p" array.

http://www.daddydesign.com/wordpress/how-to-create-a-custom-facebook-share-button-for-your-iframe-tab/

Check it out.

like image 42
Lelis718 Avatar answered Sep 19 '22 14:09

Lelis718