facebook图api发布到页面

时间:2015-02-01 05:51:05

标签: facebook facebook-graph-api

我在Facebook上有一个页面以及它的应用程序。 我为页面生成了一个永不过期的令牌,并尝试使用图形api POST / me / feed

发布到页面

但是,如果我在图表api中查询/ me / feed但不在页面墙上查询,则仅显示我发布的消息。为什么会这样?

/ me / feed

的结果
  {
  "id": "**********", 
  "from": {
    "category": "Education", 
    "name": "**************", 
    "id": "**************"
  }, 
  "message": "ok", 
  "actions": [
    {
      "name": "Comment", 
      "link": "https://www.facebook.com/**********"
    }, 
    {
      "name": "Like", 
      "link": "https://www.facebook.com/************"
    }
  ], 
  "privacy": {
    "description": "Public", 
    "value": "EVERYONE", 
    "friends": "", 
    "networks": "", 
    "allow": "", 
    "deny": ""
  }, 
  "type": "status", 
  "status_type": "mobile_status_update", 
  "application": {
    "name": **********", 
    "id": "************"
  }, 
  "created_time": "2015-02-01T05:26:29+0000", 
  "updated_time": "2015-02-01T05:26:29+0000"
}, 
{
  "id": "825588500832993_846332195425290", 
  "from": {
    "category": "Education", 
    "name": "************", 
    "id": "825588500832993"
  }, 
  "message": "asd", 
  "actions": [
    {
      "name": "Comment", 
      "link": "https://www.facebook.com/*************"
    }, 
    {
      "name": "Like", 
      "link": "https://www.facebook.com/**************"
    }
  ], 
  "privacy": {
    "description": "Public", 
    "value": "EVERYONE", 
    "friends": "", 
    "networks": "", 
    "allow": "", 
    "deny": ""
  }, 
  "type": "status", 
  "status_type": "mobile_status_update", 
  "application": {
    "name": "**********", 
    "id": "**************"
  }, 
  "created_time": "2015-02-01T05:22:02+0000", 
  "updated_time": "2015-02-01T05:22:02+0000"
}, 

1 个答案:

答案 0 :(得分:0)

对于遇到同样问题的人,请访问developers.facebook.com->你的应用 - >设置 - >填写电子邮件,然后转到状态&评论 - >将关闭按钮切换为开启状态