无法在fb:admins中将有效的用户ID解析为fbid [英] Valid user ID cannot be parsed as fbid in fb:admins

查看:136
本文介绍了无法在fb:admins中将有效的用户ID解析为fbid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用FB评论插件为页面评论指定主持人.根据规范,我将我的出价设置为fb:admins meta属性,但是没有出现审核链接.当我通过FB Debugger查看页面时,显示错误:

I want to specify moderators for page comments using FB comments plugin. According to spec I'd set my fbid to fb:adminsmeta property, however moderation link did not appear. When I look at my page via FB Debugger it shows an error:

Object at URL 'https:XXX' of type 'website' is invalid because the given value 
 '10152336557208977' for property 'fb:admins' could not be parsed as type 'fbid'.

请注意10152336557208977是我的fbid.

Note that 10152336557208977 is my fbid.

当我设置fb:app_id而不是fb:admins时,一切正常.但是我想通过id添加评论管理员.

When I set fb:app_id instead of fb:admins everything works fine. But I would like to add comments admins via id.

我在做什么错了?

推荐答案

FBDebugger在这里解释说,给定的ID并不是它可以理解的有效全局用户ID(不要与应用程序范围的ID混淆).

FBDebugger here explains that given ID isn't a valid global user id (don't confuse with app scoped ids) that it can understand.

我认为,为了使此工作正常进行,您将需要使用全局用户ID,您可以通过使用facebook.com上的开发工具,通过检查可能包含全局ID作为ID和/的一部分的任何元素来获得该用户ID.或html标签上的数据属性.

I think in order to get this working you will need to use your global user id, which you can obtain i.e. by using dev tools on facebook.com by Inspecting any Element that may contain your global id as part of id and/or data attribute on html tag.

我想到的第一件事是标签上的'id'attr,上面的迷你图像位于顶部栏中:

The first thing came to my mind was 'id' attr on tag with my mini image in top bar:

它看起来像id ="profile_pic_header_123456789",其中123456789是我的全局ID.

It looks like id="profile_pic_header_123456789" where 123456789 is my global id.

使用该ID-搜寻器应该可以让您成为页面的管理员.

With that ID - crawler should be able to make you an admin of your page.

这篇关于无法在fb:admins中将有效的用户ID解析为fbid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆