Alex Emile
Alex Emile

Reputation: 15

Sharing dynamic URLS

I have a music website which streams music from youtube, vevo and other media sites. The thing is, even if i define t=<?php echo $name; ?>

It will display the name of the song on the sharer.php linkbar, facebook still wont render the correct title.

you can try and see what im trying to explain here:

http://www.soundwavez.net/video/fWNaR-rxAic

If you click share, in the link bar, it will show the title of the song, defined as: t=

But facebook wont scrape the actual title and place it on the shared post.

This is what i do: <meta property="og:title" content="<?php echo $name; ?>" />

Upvotes: 0

Views: 261

Answers (1)

Nick Clark
Nick Clark

Reputation: 4467

Try adding Open Graph data in the page header. http://ogp.me/

Here is an example:

<html prefix="og: http://ogp.me/ns#">
<head>
    ...
    <meta property="og:title" content="SONG_TITLE">
    <meta property="og:type" content="music.song">
    <meta property="og:url" content="PAGE_URL">
    <meta property="og:image" content="ALBUM_COVER">
</head>

Upvotes: 2

Related Questions