When comparing the DiggIt and Facebook URL builders, I was hoping I came across the solution when I noticed the Facebook one didn't have "title=%s" like the DiggIt one does:
Code: Select all
// Build Digg it! URL
$diggItUrl = sprintf('%s?cat=%s&id=%d&lang=%s&title=%s',
PMF_Link::getSystemUri(),
$currentCategory,
$record_id,
$lang,
urlencode($thema));
// Build Facebook URL
$facebookUrl = sprintf('%s?cat=%s&id=%d&lang=%s',
PMF_Link::getSystemUri(),
$currentCategory,
$record_id,
$lang);
But it didn't matter. When I added it into the Facebook sprintf(), all it did was cause an error when loading the page.
***
phpMyFAQ warning [2]: sprintf() [function.sprintf]: Too few arguments in artikel.php on line 241. ***
So I was wrong, but maybe I am on to something, here?