CMS MADE SIMPLE FORGE

SEOTools2

 

[#8357] facebook can't pull open graph meta info for posts

avatar
Created By: info andries (andriesinfoserv)
Date Submitted: Fri Sep 07 05:18:01 -0400 2012

Assigned To: Prue Rowland (psy)
Version: 1.0.11
CMSMS Version: None
Severity: Major
Resolution: Fixed
State: Closed
Summary:
facebook can't pull open graph meta info for posts
Detailed Description:
i ran a url through FB's debugger ( https://developers.facebook.com/tools/debug
)to see why FB refused to pull current info for FB post from url and it gives me
the following as the reason why:

"Object at URL 'http://localhost/cgblog_details_page.htm' of type 'article' is
invalid because the given value 'me@email.com' for property 'fb:admins' could
not be parsed as type 'fbid'."



History

Comments
avatar
Date: 2012-09-07 05:37
Posted By: Prue Rowland (psy)

I'm no FB expert but I think you have entered the wrong info for the FB admin
account ID.  It's not your regular email address but your FB username, eg
john.doe where john.doe@facebook.com would be his FB email address.  The FB ID
is also what appears after www.facebook.com, eg www.facebook.com/john.doe

Let me know if this resolves the problem.

psy

      
avatar
Date: 2012-09-07 06:49
Posted By: info andries (andriesinfoserv)

yes, that was the problem. thanks.  
where should i post the following issue, Feature request or BR?

cgblog details page url isn't translated to canonical url or og: url and causes
FB not to pull proper metadata for cgblog detail page FB posts.

 is this appropriate for seotools2 or cgblog?

thanks again.  
      
avatar
Date: 2012-09-07 07:18
Posted By: Prue Rowland (psy)

I'm no FB expert but I think you have entered the wrong info for the FB admin
account ID.  It's not your regular email address but your FB username, eg
john.doe where john.doe@facebook.com would be his FB email address.  The FB ID
is also what appears after www.facebook.com, eg www.facebook.com/john.doe

Let me know if this resolves the problem.

psy

      
avatar
Date: 2012-09-07 07:51
Posted By: Prue Rowland (psy)

Not sure. Think we need calguy's expertise here. Maybe has something to do with
the canonical link in the metadata which currently is outside of SEOTools2.

In the default Simplex template:

{if isset($canonical)}<link rel='canonical' href='{$canonical}' />{elseif
isset($content_obj)}<link rel='canonical' href='{$content_obj->GetURL()}'
/>{/if}

Happy to fix/adjust SEOTools2 to accommodate if needed.

      
avatar
Date: 2012-09-08 06:28
Posted By: info andries (andriesinfoserv)

ok, thanks to your info regarding the smarty included in the simplex theme, i
think i have it figured out.

i added the simplex smarty to my page template (right after the {metadata}
tag)and cgblog was able to set the canonical url for cgblog details pages. i
then modified seotools2/action.default.php on aprox line 82 to the following:

//  $page_url = $curcontent->GetURL();

if (isset($tpl_vars['canonical'])) {
    $page_url = $tpl_vars['canonical'];
}
else  {   
    $page_url = $curcontent->GetURL();
}

this way if the canonical variable is provided and made available by the news
module or cgblog it will use that and if not the $content_obj->GetURL(); will be
used.

If i haven't overlooked anything, please feel free to add to your module and
thanks again.
      
avatar
Date: 2012-09-09 19:38
Posted By: Prue Rowland (psy)

Thanks for the feedback. Fixed in SEOTools2 v1.1
      
Updates

Updated: 2013-07-27 19:29
cmsms_version_id: 29730 => -1
state: Open => Closed

Updated: 2012-09-09 19:38
resolution_id: 5 => 7

Updated: 2012-09-07 05:37
resolution_id: => 5