3

我想发布一个动态创建的操作,例如在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

`

有人收到这样的错误吗?

4

0 回答 0