Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Php Facebook share link

I have a website with some Facebook "Share" buttons. The Facebook "Share" button was working properly until a few days. I haven't touch the code in the meantime. Now, I get a notification "Not found- back to Facebook", each time I click on the share button in my website.

Here is an example of a link for sharing:

http://www.facebook.com/sharer.php?s=100&p[title]Mytitle=&p[summary]MySummary=&p[url]=http://www.tribalartmagazine.com/index.php?content=article&section=news&id=360&lang=en&p[image]=http://www.tribalartmagazine.com/assets/data/news/n360.jpg

Thank you for your help as I really don't see the problem.

I searched but I've seen nowhere that Facebook has changed the attributes of the shared links lately so I really don't know what should be done.

like image 261
Bachir Messaouri Avatar asked Dec 18 '25 05:12

Bachir Messaouri


1 Answers

urlencode only the arguments, not everything, also, the correct url is: https://www.facebook.com/sharer/sharer.php
not
https://www.facebook.com/sharer.php

    <a class="element1_item_facebook_on" href="https://www.facebook.com/sharer/sharer.php?s=100&p[title]=&p[summary]=&p[url]=http%3a%2f%2fwww.tribalartmagazine.com%2findex.php%3fcontent%3darticle%26section%3dnews%26id%3d433%26lang%3den&p[image]=http%3a%2f%2fwww.tribalartmagazine.com%2fassets%2fdata%2fnews%2fn433.jpg">Share Me</a>
like image 106
Pedro Lobito Avatar answered Dec 20 '25 20:12

Pedro Lobito



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!