尝试向用户添加成就,但收到错误消息,指出该成就具有 og:type of “website”;
我所创造和成就: https://graph.facebook.com/10150491734196645 这似乎是正确的,而且上面说这是一项成就...... 但是,当我尝试将此成就添加到用户时,出现以下错误:
facebook.GraphAPIError: (#3502) URL 10150491734196645 处的对象有 og:“网站”类型。属性“成就”需要一个对象 og:输入“游戏.成就”。
我不知道我在这里做错了什么:/
I've created and achievement:
https://graph.facebook.com/10150491734196645
It seems to be correct and there it says it is an achievement...
However when I try to add this achievement to an user i get the following error:
facebook.GraphAPIError: (#3502) Object at URL 10150491734196645 has
og:type of 'website'. The property 'achievement' requires an object of
og:type 'game.achievement'.
I don't know what I'm doing wrong here :/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来是FB的错误形式,og:属性必须由FB访问的网页来定义。也许您应该创建一个中间步骤并重现 https://graph.facebook.com/10150491734196645 提供的数据 在您的服务器中定义了 og:type 'game.achievement' 类型。
It looks like is an error form FB, the og: properties have to be defined by the webpage FB visits. Probably you should create a middle-step and reproduce the data that is provided at https://graph.facebook.com/10150491734196645 in your server with that og:type 'game.achievement' type defined.
这是一个愚蠢的错误,传递的是成就的 id 而不是 url!
It was a stupid mistake, was passing the id of the achievement instead of the url!
创建一个 access_token 并使用它。
对于access_token;
https://smashballoon.com/custom-facebook-feed/access-token/< /a>
Create an access_token and use this.
For access_token;
https://smashballoon.com/custom-facebook-feed/access-token/