本文介绍了Facebook错误3506“操作类型如:不存在或未被批准";我该如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

im试图通过图形api使用内置的点赞中的facebook.我使用了应用令牌,因为用户已经登录了我的网站.这是即时通讯使用的源代码,它使用了这个库 https://github.com/criso/fbgraph

im trying to use facebook built in likes via the graph api.im using the App Token, since the users have already logged in in my site.here is the source im using, it uses this libraryhttps://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}
  });
}

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

The app works as expected with app admin/owner me, but with any other user i get this error msg

 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内置的类似操作的要求.

my app requests the publish actions permisions from the user, that is the requirement for the built in like action from fb.

首先,感谢您的帮助.

推荐答案

您必须先提交操作,然后才能被Facebook批准,请在此处检查: https://developers.facebook.com/docs/opengraph/submission-process/

You have to submit your actions before it is approved by Facebook, check here: https://developers.facebook.com/docs/opengraph/submission-process/

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

Before that, only admins, developers and testers of the application are allowed to test the action.

这篇关于Facebook错误3506“操作类型如:不存在或未被批准";我该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 13:52