Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7530853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:01:34+00:00 2026-05-30T05:01:34+00:00

I am trying to implement OpenGraph actions and object. It works fine, I am

  • 0

I am trying to implement OpenGraph actions and object. It works fine, I am able to create objects and actions in the ticker/Timelime.

My only concern is when you display the object, its title is a link.
But it links to the page I use to generate the object, so there is nothing to display :

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 picks my FB page value..

in a perfect I wanted to link to nothing or my FB page.

Any clue ?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:01:36+00:00Added an answer on May 30, 2026 at 5:01 am

    Since the linter doesn’t run javascript, you can do a javascript redirection for the user to go to the place you want.

    <script> location.href = 'http://example.com/the_real_page.php'; </script>

    This way the linter can still see the correct og meta tags, and the user who clicks the link gets redirected to the correct location.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to implement search with Sunspot Gem wich is using Solr.Fulltext search works fine
Im trying to implement a destructor for the objects of linked-list Iv created. I
I'm trying implement Data Annotation to my Linq to SQL objects. The .dbml file
I'm trying to implement Facebook's OpenGRaph protocol on my product pages. On each page
I'm trying implement A* Start path finding in my games(which are written with JavaScript,
I am trying implement a most recent widget into my tumblr post. So far,
Trying to implement LoaderManager + CursorLoader. In onFinish method adapter should swap its cursor
Trying to implement google C2DM service. registrationIntent.putExtra(app, PendingIntent.getBroadcast(context,0,new Intent(), 0)); registrationIntent.putExtra(sender,example@gmail.com); context.startService(registrationIntent); Almost every
Trying to implement a search similar to here .This searches properties based on city,locality,property
Trying to implement 3-layer (not: tier, I just want to separate my project logically,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.