Tiddly
Tiddly

Reputation: 1620

Open graph link showing up in description box?

I am posting an open graph story that contains a photo object onto the users page, just like the Scrumptious Facebook sample project.

The open graph story that gets posted shoes the image, the heading and then where the description should be it posts the open graph url.

Here is the open graph url I use.

https://hidden-castle-7245.herokuapp.com/opengraphobject.php?fb:app_id=554329451276476 &og:type=gopiratestd:boss &og:title=Charizard &og:description=%22Whatever%22 &og:image=http://images.all-free-download.com/images/graphicmedium/beautiful_cat_picture_6_168770.jpg &body=Something

and the action is gopiratestd:beat

I using the graph API explorer to post test posts.

Here is an image of the post that appears in the activity log.

enter image description here

Any way I can fix this?

Also is there anyway of changing what the story links too? When I select the heading or picture in the open graph story it takes me to a blank page that shows the name of the action that was posted. I would like this to link to a separate webpage, is this possible?

Upvotes: 1

Views: 221

Answers (1)

C3roe
C3roe

Reputation: 96316

Since you are using double quotes in your description parameter, you end up with

<meta property="og:description" content=""Whatever"">

in your generated HTML, and since that’s invalid, FB’s scraper does not read any description at all from your meta tags.

Drop the quotes around the value, and the scraper will read your description just fine.

Also is there anyway of changing what the story links too? When I select the heading or picture in the open graph story it takes me to a blank page that shows the name of the action that was posted.

If you want to output more content on that page – then output more content :-)

I would like this to link to a separate webpage, is this possible?

The post will always link to the URL that was posted. You can redirect normal users landing on the URL elsewhere if you want, either client-side via JavaScript (that the scraper does not interpret), or server-side (then you have to exclude the scraper from that redirect via its user agent).

Upvotes: 1

Related Questions