gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 03:11:41 24 4
gpt4 key购买 nike

我正在尝试通过图形 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com