Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Share link not working on iphone but does on desktop

I have a share link on my website that works great in most browsers and mobile devices. For some reason though, it doesn't work on iphones. It brings up a share form in facebook, however the form is empty and

<a target="_blank" href='https://www.facebook.com/sharer/sharer.php?s=100&amp;p[url]=http://www.lcbcchurch.com/watch/series/cat/{category_url_title}&amp;p[images][0]={square-thumb}&amp;p[title]={exp:stringy:htmlentities}{category_name}{/exp:stringy:htmlentities}&amp;p[summary]={category_description}'><img src="{homepage}nimg/facebook-icon.png" /></a>

Any thoughts on why this isn't working?

like image 266
nate8684 Avatar asked Sep 10 '13 14:09

nate8684


1 Answers

I have the feeling that it may not work because that sharer.php link will redirect on mobile devices to m.facebook.com. If so you just have to add the 'm2w' parameter to your URL so the m. is not picked up.

 https://www.facebook.com/sharer/sharer.php?m2w&s=100.... (etc)

The StackOverflow Question: Source

like image 108
Stephen Tvedt Avatar answered Oct 15 '22 18:10

Stephen Tvedt