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 6949617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:58:42+00:00 2026-05-27T13:58:42+00:00

I am currently developing a websie and a I have include in the news

  • 0

I am currently developing a websie and a I have include in the news section one like button for each news I post there. Generating the url for the like button is not a problem. Here is the code I use:

<iframe src=\"//www.facebook.com/plugins/like.php?href=".$url."&amp;send=false&amp;layout=button_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:450px; height:21px;\" allowTransparency=\"true\"></iframe>

and this id the is the $url:

$url = 'http://www.example.com/news/displayNews.php?title='.$display['title'].'&news_id='.$display['news_id'];

everything seem to work propely. Then I go to Facebook and the link for the news is posted there, but here is where the problem is. When i check the link posted in facebook it only has the first variable “title”, the second one “news_id” is not there.
So that’s my question:
How can i pass the two variables???

Pd: I tried interchanging the order of the variables, tried using “&” instead of “&”. Searched the internet and didn’t find a solution.

  • 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-27T13:58:43+00:00Added an answer on May 27, 2026 at 1:58 pm

    try this:

    http://www.example.com/news/displayNews.php?title='.$display['title'].'&amp;news_id='.$display['news_id']
    

    use & amp; not &

    or this because i see that youre using iframe:

    http%3A%2F%2Fwww.example.com%2Fnews%2FdisplayNews.php%3Ftitle%3D'.$display['title'].'%26news_id%3D'.$display['news_id']
    

    this kind of link is prepare at developer facebook. if they prepare link like this, than it should work

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

Sidebar

Related Questions

Currently I am developing website in asp.net. I wanted to include spellchecker module into
Currently developing a PHP framework and have ran into my first problem. I need
I am currently developing a new website and have problems with IE7. First image
I'm currently developing a monitoring application for some in-house hardware using net-snmp. I have
I am currently developing a website and have a holding page in a /hold
I'm currently developing a website which will have heavy load, and a certain amount
I am currently developing a website for an electrical company. They would like some
I am currently developing an ASP.net c# application. I have a grid view which
I am currently developing a PUBLIC and OPEN SOURCE software using PHP/MySQL. I have
I am currently developing my personal website and part of my site I have

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.