本文介绍了Facebook Graph API帖子不会显示给用户的页面,只有管理员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我在Facebook上创建了一个页面,并使用图形API在时间轴上发布帖子。这些帖子显示对我来说,作为管理员,但对于用户页面是空的。



我使用图形API验证了api资源管理器。作为管理员,/ NewsCrier / feed的GET填充数据。



作为非管理员用户,相同的请求返回

  {
data:[]
}

我的管理员用户的回覆,请注意隐私设置为public:

  {
id:383422711781035_404880726301900 ,
from:{
category:Community,
name:News Crier,
id:383422711781035
},
message:这似乎是DC射手,Aaron Alexis,
picture:https://fbexternal-a.akamaihd.net/safe_image.php?d= AQD4wR0Y9UVbb4Js& w = 154& h = 154& url = http%3A%2F%2Fwww.justmugshots.com%2Fimg%2F814064%2Flg%2Faaron-alexis.jpg,
link:http:// www.justmugshots.com/texas/fort-worth/814064,
name:Aaron Alexis,被捕在2010-09-04,
caption:www.justmugshots.com ,
description:Aaron Alexis于2010-09-04在德克萨斯州沃思堡被捕,现在看到mugshot,
icon:https://fbstatic-a.akamaihd.net/rsrc.php/v2/yD/r/aS8ecmYRys0.gif,
actions:[
{
name:Comment,
link:https://www.facebook.com/383422711781035/posts/404880726301900
},
{
name:Like,
link:https://www.facebook.com/383422711781035/posts/404880726301900
}
],
隐私:{
description:Public,
value:EVERYONE,
friends:,
networks:,
allow:,
deny:
},
type:link,
status_type:shared_story
application:{
name:Reddit News Alerts,
id:693375074022011
},
created_time:2013 -09-16T19:36:07 + 0000,
updated_time:2013-09-16T19:36:07 + 0000
}
/ pre>

解决方案

问题是您的Facebook应用程序处于沙箱模式,一旦你从沙盒的应用程序,所有的用户将会新创建的帖子;)


I created a page on facebook, and am using the graph api to make posts on the timeline. These post show up just fine for me as the admin, but for users the page is empty.

I verified with the graph api explorer. As an admin a GET of /NewsCrier/feed is filled with data.

As a non admin user the same request returns

{
  "data": [  ]
}

Here is an example post from the response of my admin user, notice the privacy is set to public:

{
  "id": "383422711781035_404880726301900",
  "from": {
    "category": "Community",
    "name": "News Crier",
    "id": "383422711781035"
  },
  "message": "This appears to be the DC shooter, Aaron Alexis",
  "picture": "https://fbexternal-a.akamaihd.net/safe_image.php?d=AQD4wR0Y9UVbb4Js&w=154&h=154&url=http%3A%2F%2Fwww.justmugshots.com%2Fimg%2F814064%2Flg%2Faaron-alexis.jpg",
  "link": "http://www.justmugshots.com/texas/fort-worth/814064",
  "name": "Aaron Alexis, Arrested on 2010-09-04",
  "caption": "www.justmugshots.com",
  "description": "Aaron Alexis was arrested in Fort Worth, Texas on 2010-09-04. See the mugshot now.",
  "icon": "https://fbstatic-a.akamaihd.net/rsrc.php/v2/yD/r/aS8ecmYRys0.gif",
  "actions": [
    {
      "name": "Comment",
      "link": "https://www.facebook.com/383422711781035/posts/404880726301900"
    },
    {
      "name": "Like",
      "link": "https://www.facebook.com/383422711781035/posts/404880726301900"
    }
  ],
  "privacy": {
    "description": "Public",
    "value": "EVERYONE",
    "friends": "",
    "networks": "",
    "allow": "",
    "deny": ""
  },
  "type": "link",
  "status_type": "shared_story",
  "application": {
    "name": "Reddit News Alerts",
    "id": "693375074022011"
  },
  "created_time": "2013-09-16T19:36:07+0000",
  "updated_time": "2013-09-16T19:36:07+0000"
}
解决方案

The problem is that your Facebook app is in sandbox mode, as soon as you take the app from sandbox all the users will se the newly created posts ;)

这篇关于Facebook Graph API帖子不会显示给用户的页面,只有管理员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 17:06