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

  • SEARCH
  • Home
  • 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 6834053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:03:49+00:00 2026-05-26T23:03:49+00:00

I want users to be able to use the facebook send button to send

  • 0

I want users to be able to use the facebook send button to send friends a link to a page on my site. The page itself is the generic sign-up page, but if there is a “referral_code” query string parameter it indicates who referred the user. In that sense, the URL is unique, even though the page is not. So, I do the following on a page called /referrals (with the jssdk already loaded):

<span class="fb-send" data-href="http://my.domain.com/sign_up?referral_code=unique-to-each-user"></span>

The send button opens the dialog correctly, but it is including a lame image and text in the message using whatever selection heuristic facebook engineers have built.

I read a little further in the docs and find I can use og:image on the /sign_up page to specify the image to use (as long as the width/height ration is < 3!).

So, on http://my.domain.com/sign_up I add the requisite og tags.

The pickle: if you use any og tags then you must also include og:url, and it seems that og:url takes precedence.

My question, then, is, am I right that og:url takes precedence over data-href? And if so, is there some other technique I can use that allows me to include the og tags on the target page (static) while still specifying the exact URL (dynamic) to send/like?

  • 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-26T23:03:50+00:00Added an answer on May 26, 2026 at 11:03 pm

    You are right that Facebook will take the value of the OG:url over what is provided as data-href.

    However the ref attribute should do what you want. From the send button docs:

    ref – a label for tracking referrals; must be less than 50 characters
    and can contain alphanumeric characters and some punctuation
    (currently +/=-.:_). The ref attribute causes two parameters to be
    added to the referrer URL when a user clicks a link from a stream
    story about a Send action:

    So if you provide the ref attribute in your send button code the referral id will be added to the incoming url:

    <fb:send data-href="http://my.domain.com/signup" ref="unique-to-each-user"></fb:send> 
    

    The above code would produce this as the URL in the stream story:

    http://www.yoursite.com/sign-up?fb_ref=unique-to-each-user&fb_source=message

    When clicked through to your site you could grab the value of fb_ref and determine which user provided the referral.

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

Sidebar

Related Questions

I want users to be able to use Facebook Connect on MY website. And
I have an app where we want users to be able to send us
I want to be able to provide a button to my users to just
Users have been able to log into my website using their Facebook account, but
I want the users of my website to be able to authorize Facebook access
i want to be able to enter the users details from facebook into my
I want to be able to share videos from my Wordpress site to Facebook
I'm creating a new site and I want the users to be able to
Similar Stack Overflow Question I want users to be able to search through my
In my Rails app I want users to be able to input video links

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.