Facebook 错误 3506 "The action type likes:Like does not exist or is not approved"我该如何解决这个问题?

标签 facebook node.js facebook-graph-api

我正在尝试通过图形 API 使用 facebook 内置的点赞功能。 我使用应用程序 token ,因为用户已经登录我的网站。 这是我使用的源,它使用这个库 https://github.com/criso/fbgraph

function liker(url,profile){
 graph.setAccessToken(app_token);

  var like = {
    object: url
  };

  graph.post(profile.id + "/og.likes", like, function(err, res) {
  // returns the post id
    console.log(res); // { id: xxxxx}
  });
}

应用程序管理员/所有者我可以按预期工作,但对于任何其他用户,我都会收到此错误消息

 error:
  { message: '(#3506) The action type likes:Like does not exist or is not approved, so app      xxxxxxxxxx can only publish to administrators, developers, and testers of the app.  User yyyyyyyyyyy$
 type: 'OAuthException',
 code: 3506 } 

我的应用程序向用户请求发布操作权限,这是来自 fb 的内置类似操作的要求。

预先致谢,我们将不胜感激任何帮助。

最佳答案

您必须在 Facebook 批准之前提交您的操作,请在此处查看:https://developers.facebook.com/docs/opengraph/submission-process/

在此之前,仅允许应用程序的管理员、开发人员和测试人员测试该操作。

关于Facebook 错误 3506 "The action type likes:Like does not exist or is not approved"我该如何解决这个问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15479534/

相关文章:

ios - ASIHTTPRequest 缓存禁用

swift - 用户如何将其图表请求的个人资料图像更改为相册中的图像

iphone - NSInteger 和 facebookId

Facebook Messenger Chatbot 如何收集用户发送的地理位置信息?

php - 如何避免一次做 5000 个查询?

node.js - 在nodejs中使用multer上传xlsx文件时添加自定义字段

javascript - facebook API 如何调用 onlogin

node.js - Node 本地依赖项安装为快捷方式并嵌套而不是平面

ajax - 如何从长时间的异步过程中接收实时更新?

Facebook 信使 API : An active access token must be used to query information about the current user