Open Graph Publishing Returns "Internal Server Error 500"

I want to publish a dynamically created action, for example at 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 Object Debugger ( http://developers.facebook.com/tools/debug ) returns that my object is OK, but when I try to publish it via my iOS app I get the response "internal server error 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

      

`

Does anyone get this error?

+3
publishing facebook-opengraph


source to share


No one has answered this question yet

Check out similar questions:

99
How to use the 'og' (Open Graph) meta tag for Facebook sharing
4
The Facebook debugger does not parse the URL correctly. Parses http://url.com instead of http://url.com?param=value
4
Facebook Open Graph doesn't read meta tags
3
FB Open Graph OAuthException: (# 3502) og: type is website, not namespace: object
2
Open Chart Link Action Returning 500 Errors
2
facebook open graph for iOS error while posting
1
Facebook og: image tag cannot be loaded from Drupal website
1
Facebook Open Graph properties not working: "Property" og: image "must be explicitly provided, even if the value can be inferred from other tags."
0
Facebook Like Button Confirmation page: "The page you requested was not found"
0
My websites open meta tags in graphics that don't show up in developers. Facebook debugger



All Articles
Loading...
X
Show
Funny
Dev
Pics