Skip to main content

Facebook not loading page data as expected

Greetings!

When I post a link to the internal pages on most NationBuilder sites, the title of the page and a paragraph from the page is loaded into the Facebook window.

For example, on Candace Duval:

 

on Eric Garceti:

But on this one particular client's site, when I post a link to an internal page, instead of grabbing the text to that page, it always grabs the text from the Excerpt for Facebook, search engines, etc. (Settings > Social) for the splash page:

 

Even after I hit Post, it's still the same:

 

Now, the LINKS go to the proper internal page, so that part is working as intended. But I don't know why the Facebook window is loading the Excerpt from the splash page. And I don't know why it's only happening on this site, and not my others.

The client definitely wants the content from the internal page to show up in the Facebook window when posting the link to the internal page. I would like that as well. So why isn't it happening?

Thanks! :-)


Additional info:

The OG links are set in the layout.html for this site:
<meta property="og:title" content="Mike Bonin for City Council 2013"/>
<meta property="og:url" content="http://www.mikebonin.com"/>
<meta property="og:image" content="http://www.mikebonin.com/themes/1/506b0e36a797ff30a200001b/0/attachments/13492220731349801748/default/Mike-Bonin-for-City-Council-2013.jpg"/>
<meta property="og:image" content="Mike-Bonin-for-City-Council-2013.jpg"/>
<meta property="og:site_name" content="Mike Bonin"/>
<meta property="fb:admins" content="redtimmy"/>

This is a continuation from an earlier issue, here: Facebook ignoring canonical link in OG meta tag, linking splash page.

Official response from

Tim, 

I ran this page through the FB delinter and came up with some errors:

Screen_Shot_2012-10-24_at_2.13.58_PM.png

More Than One OG URL Specified: Object at URL 'http://www.mikebonin.com' of type 'article' is invalid because it specifies multiple 'og:url' values: http://www.mikebonin.com, http://www.mikebonin.com/.

 

I see there are a few meta tags have been added (hardcoded)  into your layout.html file that are causing an error with Facebook. 

Hardcoding these basic meta tags is not necessary in NationBuilder because we generate those automatically using information entered in the page's settings (like with the example here you mentioned previously.) 

Screen_Shot_2012-10-24_at_2.16.23_PM.png

In the example above, you have hardcoded an og:title tag, and once the page is rendered, we are taking the {{ page_title }} and dynamically turning that into an og:title tag. You can view the source to check these for every page.

All of the tags in the screenshot above are being automatically generated from the settings of each page. 

Screen_Shot_2012-10-24_at_2.31.23_PM.png

This is likely to be what is confusing Facebook and causing multiple value errors. Please remove these duplicates, clear your site cache and run it through the Facebook delinter and let us know if there is still an issue. 

Thanks.

Your question was answered on NationBuilder Live! 

Share this post

Showing 4 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.
Back to top