2012-06-26 2 views
0

Facebook에 Social Comments 플러그인의 OpenGraph 메타 태그를 인식시키는 데 문제가 있습니다. 나는 여기와 구글에서이 문제를 철저히 조사했다.동적 OpenGraph 메타 태그가 구문 분석하지 않습니다

이 문제의 다른 몇 가지 사례에서 제안한 것처럼 콘텐츠 길이 헤더를 설정해 보았습니다. 나는 또한 fb : comments href가 og : url과 정확히 동일하게 만들어 지도록 노력했다. 이들 중 어느 것도 Facebook이 내 메타 태그를 인식하는 것을 허용하지 않습니다.

페이지 탭 URL : 디버거
http://www.facebook.com/pages/Telenova-IP-Services/287547201338150?sk=app_348971505174676

URL :
http://apps3.ionflo.com/photocontest/index.php?type=restaurant&id=287547201338150-IPUTI8K7EGYMSTBU

이 파일 /index.php :

97 $cody = array(
98   'title' => $TitleShare, 
99   'description' => $DescriptionShare, 
100   'type' => 'restaurant'); 

117   <!-- Open Graph meta tags --> 
118   <meta property="fb:app_id" content="348971505174676" /> 
119   <meta property="og:site_name" content="Test Site Name"/> 
120   <meta property="og:url" content="<?php echo $AbsoluteURL; ?>index.php?type= <?php echo $params['type']; ?>&id=<?php echo $PageID . '-' . $CommentRandomVal; ?>"/> 
121   <meta property="og:title" content="<?php echo $cody['title']; ?>"/> 
122   <meta property="og:description" content="<?php echo $cody['description']; ?>"/> 
123   <meta property="og:type" content="<?php echo $cody['type']; ?>"/> 
124   <meta property="og:locale" content="<?php echo $params['locale']; ?>"/> 
125   <meta property="og:image" content="<?php echo $AbsoluteURL; ?>images/facebook.png"/> 

파일 :/home.php

24   <fb:comments href="<?php echo $AbsoluteURL; ?>index.php?type=<?php echo  $params['type']; ?>&id=<?php echo $PageID . '-' . $CommentRandomVal; ?>" num_posts="3000"  width="800"> 
포함 01 23,516,

코드의 전체 복사본을 참조하십시오

HTTP //apps3.ionflo.com/photocontest/index.bak

HTTP //apps3.ionflo.com/photocontest/include/home. bak

다른 유용한 정보가 누락 된 경우 알려주십시오. 게시물을 업데이트하게되어 기쁩니다.

건배,

코디

답변

0

URL은 메타 태그를 끌어 올바른 페이지 id를 포함하지 않았다.

우리가 얻을 변수

예를 들어, 같은 페이지에 올바르게 페이지 id를 전달하고 보장이 해결 ? 페이지 id = * ** *

건배.

관련 문제