facebook api - >响应代码206 - >发生错误

时间:2013-11-02 22:23:12

标签: html facebook api facebook-graph-api

我的错误是 - >尝试做一个基本的Facebook应用程序时发生错误(不是很有用)。

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta charset="UTF-8">
<meta property="og:title" content="This Page Title">
<meta property="og:description" content="product">
<meta property="og:url" content="http://tpccommedia.com/fb_progs/redir.php?p=share">
<meta property="og:site_name" content="mySiteName">
<meta property="og:type" content="website">
<meta property="fb:app_id" content="229474487215744">
<meta property="og:image" content="http://telecom.com/images/nyclogo.png">
<title>Register</title>
</head>
<body>

<a href="http://www.facebook.com/dialog/feed?app_id=1392552050964797&amp;display=popup&amp;caption=http://tpccommedia.com/fb_progs/redir.php?p=share">Share This App!</a>

</body>
</html>

Facebook调试器的输出只显示206的响应代码,我理解这是预期的吗?

Scrape Information
Response Code   206
Fetched URL http://tpccommedia.com/fb_progs/redir.php?p=share
Canonical URL   http://tpccommedia.com/fb_progs/redir.php?p=share
Object Properties
fb:app_id   229474487215744
og:url  http://tpccommedia.com/fb_progs/redir.php?p=share
og:type website
og:title    This Page Title
og:image    
og:description  product
og:site_name    mySiteName
og:updated_time 1383429465
Raw Open Graph Document Information
Meta Tag    <meta property="og:title" content="This Page Title" />
Meta Tag    <meta property="og:description" content="product" />
Meta Tag    <meta property="og:url" content="http://tpccommedia.com/fb_progs/redir.php?p=share" />
Meta Tag    <meta property="og:site_name" content="mySiteName" />
Meta Tag    <meta property="og:type" content="website" />
Meta Tag    <meta property="fb:app_id" content="229474487215744" />
Meta Tag    <meta property="og:image" content="http://nyctelecomm.com/images/nyclogo.png" />
URLs
Graph API   https://graph.facebook.com/176103072585712
Scraped URL     See exactly what our scraper sees for your URL 

我没有在其他帖子中指出的沙箱模式。 我错过了什么?

1 个答案:

答案 0 :(得分:1)

我认为这里的问题是您的“分享此应用”链接。

http://www.facebook.com/dialog/feed?app_id=1392552050964797&display=popup&caption=http://tpccommedia.com/fb_progs/redir.php?p=share

确保app_id正确(不是页面ID),并且您已根据文档指定了redirect_uri。

https://developers.facebook.com/docs/reference/dialogs/feed/#redirect