Topic-icon Like button disappears

Active Subscriptions:

None
13 years 8 months ago #26443 by activha
Replied by activha on topic Like button disappears
Hello

This worked but I had to change JURI::base() to JURI::current() :-)

I still have a debug error on Facebook which is :
Object at URL 'vero.site113.com/113/itemlist/user/43' of type 'website' is invalid because the given value '' for property 'fb:app_id' could not be parsed as type 'fbid'.

Any other idea ?

Thanks
Jean Claude
The topic has been locked.
Support Specialist
13 years 8 months ago #26451 by alzander
Replied by alzander on topic Like button disappears
Jean Claude,
That's actually a bug that will be fixed in the next release that I forgot about. Currently, we'll insert even a blank app_id for the Open Graph tags. To fix, you'll need to edit the /libraries/sourcecoast/opengraph.php file. Around line 95, you'll see:
if (strpos($headerGraphString, 'fb:app_id') === false && SCSocialUtilities::areJFBConnectTagsEnabled())
            {
                $appId = SCSocialUtilities::getJFBConnectAppId();
                $headerGraphString .= '<meta property="fb:app_id" content="' . $appId . '"/>' . CARRIAGE_RETURN;
            }
Update that with the if ($appId != '') check, as below:
if (strpos($headerGraphString, 'fb:app_id') === false && SCSocialUtilities::areJFBConnectTagsEnabled())
            {
                $appId = SCSocialUtilities::getJFBConnectAppId();
                if($appId != '')
                    $headerGraphString .= '<meta property="fb:app_id" content="' . $appId . '"/>' . CARRIAGE_RETURN;
            }
Hope that helps!
Alex
The topic has been locked.