I am trying to implement actions and an OpenGraph object. It works great, I can create objects and actions in the ticker / Timelime.
My only problem is when you show the object, its title is a link. But it links to the page that I use to create the object, so nothing is visible:
object.html.erb
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# name_space: http://ogp.me/ns/fb/name_space#"> <meta property="fb:app_id" content="APP_ID" /> <meta property="og:type" content="name_space:object" /> <meta property="og:url" content="PATH_TO_METHOD_TO_CREATE_OBJECT?img_link=<%= CGI.escape(@img_link)%>&points=<% =@points %>&description=<%= @description%>" /> <meta property="og:title" content="<%= params[:units_offered] %> Points" /> <meta property="og:description" content="<%= params[:description] %>" /> <meta property="og:image" content="<%= params[:img_link] %>">
if I change the og: url meta tag to the url of my FB page, then the object selects my FB page value ..
Ideally, I wanted to link to nothing or to my FB page.
Any clue?
Thanks!
source share