打开图表发布返回“内部服务器错误500”

时间:2013-02-05 22:45:31

标签: facebook-opengraph publishing

我想发布动态创建的操作,例如https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/publish-open-graph-story/

  <?php
`function curPageURL() {`
 `$pageURL = 'http://';`
` if ($_SERVER["SERVER_PORT"] != "80") {` 
 `$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {`
 `$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }` 
 `return $pageURL;
}
?>`

`<html>`<html>
  `<head prefix="og: http://ogp.me/ns# product: http://ogp.me/ns/product#">
    <meta property="fb:app_id" content="<?php echo strip_tags($_REQUEST['fb:app_id']);?>">`
   `<meta property="og:url" content="<?php echo strip_tags(curPageURL());?>">
      <meta property="og:type" content="<?php echo strip_tags($_REQUEST['og:type']);?>">
      <meta property="og:title" content="<?php echo strip_tags($_REQUEST['og:title']);?>">
      <meta property="og:image" content="<?php echo strip_tags($_REQUEST['og:image']);?>">
      <meta property="og:description" content="<?php echo strip_tags($_REQUEST['og:description']);?>">
      <title>Product Name</title>
  </head>`   
  `<body>
      <?php echo strip_tags($_REQUEST['body']);?>
    </body>
</html>`  

facebook对象调试器(http://developers.facebook.com/tools/debug)返回我的对象​​是好的,但是当我尝试通过我的iOS应用程序发布它时,我得到一个响应“内部服务器错误500”

object url:
`http://wl.uasoft.net/wishobject.php?fb:app_id=437320636331183&og:type=mytestbiaka:wish&og:title=wishik&og:description=MyTestBiaka%20app&og:image=http%3A%2F%2Fsilkdream.ru/pict/mult-pict.narod.ru276_small.jpg&body=Wish`

request to fb:
`https://graph.facebook.com/me/mytestbiaka:add?wish=http://wl.uasoft.net/wishobject.php?fb:app_id=437320636331183&og:type=mytestbiaka:wish&og:title=wishik&og:description=MyTestBiaka%20app&og:image=http%3A%2F%2Fsilkdream.ru/pict/mult-pict.narod.ru276_small.jpg&body=Wish&access_token=ACCESS_TOKEN

`

有人得到这样的错误吗?

0 个答案:

没有答案