-1

I'm trying to share a URL like this:

http://www.facebook.com/sharer/sharer.php?u=http://exemple.com?page=poster_info&sid=1

... but Facebook ignores &sid=1. How can I fix this?

Gil Birman
  • 35,242
  • 14
  • 75
  • 119
  • You question is incomprehensible. Please give more details. – Gil Birman Aug 09 '12 at 00:40
  • Hm i need when someone press on image to share the page with facebook share.I using this code http://www.facebook.com/sharer.php?u=http://fejsbukzabava.hostoi.com?poster_info&sid=".$info['sid']."&t=Fejsbuk-zabava - But it dont want to share that page it sharing http://www.facebook.com/sharer.php?u=http://fejsbukzabava.hostoi.com?poster_info how can i fix that? – user12837127312893 Aug 09 '12 at 00:48
  • your url should not have **$** – Gil Birman Aug 09 '12 at 01:02
  • You didn't understand me good.. How can i share this link http://www.facebook.com/sharer/sharer.php?u=http://exemple.com?page=poster_info&sid=1... It show me just where is ?page=poster_info after noting. – user12837127312893 Aug 09 '12 at 01:04
  • i think you might have to urlencode your url – Gil Birman Aug 09 '12 at 01:11
  • I tryed with this http://www.facebook.com/share.php?t=Fejsbuk&u='.urlencode('http://family-gaming.com/fb/index.php?page=poster_info&sid=10'); But it didn't work.. – user12837127312893 Aug 09 '12 at 01:30

1 Answers1

2

Sharing involves calling this url...

http://www.facebook.com/sharer.php?u=MY_LINK

use the php function urlencode() on MY_LINK

Gil Birman
  • 35,242
  • 14
  • 75
  • 119