0

Here is the scenario:

Site A - has the open graph tags and when a user hits the page a frictionless timeline post is made. Then, when a person clicks on that post I want to direct them to Site B.

I've already figured out how to make successful posts to timeline from Site A.

Any ideas on how I can force a different URL for the title, image, etc from the site a post was made?

OG Meta Tags:

<meta property="fb:app_id" content="<%= @graph.fbappid %>"/>
<meta property="og:type" content="<%= @graph.ogtype %>"/>
<meta property="og:title" content="<%= @graph.ogtitle %>"/>
<meta property="og:description" content="<%= @graph.ogdesc %>"/>
**<meta property="og:url" content="<%= @graph.ogurl %>"/>**
<meta property="og:image" content="<%= @graph.ogimage %>"/>
<meta property="video:actor" content="<%= @graph.ogactor %>" />

The og:url references the page from which a post is made. However, I want the user to be directed to a different page when the click on the post.

rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
  • How are you making a "frictionless timeline post"? When you say "change url", do you mean have the URL redirect to another URL when visited? Please provide an example URL as well so we can view the OG tags. – thaddeusmt Jan 31 '12 at 23:09
  • Frictionless timeline post - as in the posts are made on a timer (I know this is a no-no with facebook, we are doing this for demo purposes). I have the post functions with the action to fire off when a user hits the page if they have allowed the app. As for the OG tags - I have added that above as an edit. Thanks! – Ami Milyoni Jan 31 '12 at 23:33
  • So I'm confused about what you need to change still. When the user clicks through the Timeline post, they will be linked to the `og:url` that was shared. You cannot change that. The share IS the Object (Object == URL). You can make the `og:url` meta tag different than the page's actual URL though, I guess. In that case, just echo out something else, like `<%= @graph.otherurl %>`? – thaddeusmt Jan 31 '12 at 23:58
  • The idea was to change the og:url when a post is made - but as you stated, that it not something I can change. I tried removing the og:url and replacing the og:url value however; the debugger displayed the og:url as before despite it not being explicitly coded. I wonder how spotify does it because when a music listened to post is made, the title links to a facebook.com/music/song page. Any ideas? Else I'll result to the redirect method. Thanks again! – Ami Milyoni Feb 01 '12 at 01:01

0 Answers0