Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook 打开图形操作';s自定义属性类型数组_Facebook_Facebook Opengraph - Fatal编程技术网

Facebook 打开图形操作';s自定义属性类型数组

Facebook 打开图形操作';s自定义属性类型数组,facebook,facebook-opengraph,Facebook,Facebook Opengraph,发布OG操作时,我遇到了正确传递参数的问题。该操作具有数组类型的自定义属性“profile”。我想把2个元素传递给这个参数。 如何生成此链接 我已经尝试过这些变体: api(“/me/APP_名称空间:ACTION?OG_OBJECT=LINK_TO_OG_OBJECT&profile[]=1&profile[]=2”,…) api(“/me/APP_名称空间:ACTION?OG_OBJECT=LINK_TO_OG_OBJECT&profile[0]=1&profile[1]=2”,…) 它们不

发布OG操作时,我遇到了正确传递参数的问题。该操作具有数组类型的自定义属性“profile”。我想把2个元素传递给这个参数。 如何生成此链接

我已经尝试过这些变体:

api(“/me/APP_名称空间:ACTION?OG_OBJECT=LINK_TO_OG_OBJECT&profile[]=1&profile[]=2”,…)

api(“/me/APP_名称空间:ACTION?OG_OBJECT=LINK_TO_OG_OBJECT&profile[0]=1&profile[1]=2”,…)

它们不工作-FB返回错误

请帮忙


我尝试将数组作为JSON和转义JSON传递

var q = new Array();
q.push(*VALUE1*);
q.push(*VALUE2*);

q = $.toJSON(q);
尝试了以下操作:“…配置文件[]=”+q+“…”,“…配置文件=”+q+“…” 这是:“…profile[]=”+escape(q)+“…”,“…profile=”+escape(q)+“…”

并尝试将q作为JSON中的对象传递(转义)


如果还没有尝试过它,它就无法工作,我假设在大多数情况下,与Graph API一样,您应该以JSON的形式传递数组数据…?

嗨,我也遇到了类似的问题,您找到解决方案了吗?目前没有。FB和这里没有任何答案