View Single Post
  #14  
Old 04-15-2012, 12:25 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mark.B View Post
Gemma I have this issue too and I've done some investigating.
I know the cause but I cannot solve it.

Facebook is not picking up any Opengraph meta tags, hence it doesn't know any of the parameters (this can be seen in the debugger tool.

On your site, og: tags are visible in the source code, like this:

Code:
<meta property="fb:app_id" content="snipped" />
<meta property="og:title" content="TOTWO" />
<meta property="og:type" content="website" />
<meta property="og:description" content="TOTWO is a pairs game. Click on the cards to see what is behind them, and try to match all the pairs before the time runs out! 

Have fun!" />
<meta property="og:url" content="http://www.forumbanter.com/arcade/game-873/" />
<meta property="og:image" content="http://www.forumbanter.com/images/arcade/totwo.jpg" />
But as far as I can see this mod doesn't add those. I'm wondering if you have something else running that adds those for you, or whether you've added them manually, but without them it won't work.

Now, beyond that, I have tried adding suitable tags into the v3ARCADE_PLAY template, but Facebook still doesn't pick them up! Although they are visible in the source, Facebook's debugger doesn't "see" them.

Oddly if, as a test, I put some manual tags in the v3ARCADE_MAIN template, Facebook DOES see them (though of course that's no use for this mod!)

Bit weird and I've spent hours trying to figure it out to no avail.

It's possible others haven't reported this, since unless you try clicking your own Facebook links (which most people probably won't do), they may not be aware it might not be working.
Hmmm, I might need to revise this.

Could you try this for me please.

Open your v3ARCADE_PLAY template and search for:

Code:
{vb:raw headinclude_bottom}
Below that add: (adding your own FB APP ID instead of xxxxxxxxxxxxxxx):

Code:
<meta property="fb:app_id" content="xxxxxxxxxxxxxxx" />
<meta property="og:title" content="{vb:raw game.title}" />
<meta property="og:type" content="website" />
<meta property="og:description" content="{vb:raw game.description}" />
<meta property="og:url" content="{vb:raw vboptions.bburl}/arcade/game-{vb:raw game.gameid}/" />
<meta property="og:image" content="{vb:raw vboptions.bburl}/images/arcade/{vb:raw game.stdimage}" />
Then in your v3arcade_headinclude template add this at the bottom

Code:
<script>var fbShare = {url: '{vb:raw href}',size: 'large',badge_text: 'fff',badge_color: '6666CC',google_analytics: 'true'}</script>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01313 seconds
  • Memory Usage 1,780KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete