nate8684
nate8684

Reputation: 539

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?

Upvotes: 6

Views: 5268

Answers (1)

Stephen Tvedt
Stephen Tvedt

Reputation: 326

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

Upvotes: 9

Related Questions