使用 php sdk 更改 facebook 选项卡图标

发布于 2025-01-03 15:07:24 字数 332 浏览 4 评论 0原文

我创建了一个 Facebook 应用程序,用于在任何 Facebook 页面中添加页面选项卡。

一切工作正常,但我无法更改我添加的选项卡的图标。

我正在使用以下 php sdk 代码

if($facebook->api($tabid, 'POST', array(
'custom_name' => $tabtitle,
'image_url'=>$newname,
'is_non_connection_landing_tab'=>1,
'access_token'=>$mpagetoken
))

请告诉我哪里错了?

I have created a facebook application for addding page tab in any facebook page.

Everything is working fine but i am not able to change the icon the tab i am adding.

I am using following code of php sdk

if($facebook->api($tabid, 'POST', array(
'custom_name' => $tabtitle,
'image_url'=>$newname,
'is_non_connection_landing_tab'=>1,
'access_token'=>$mpagetoken
))

Please tell me where i am wrong in this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

痞味浪人 2025-01-10 15:07:24

中没有 image_url 这样的字段页面选项卡

实际上选项卡图标是应用程序图标,它是 icon_url 字段application 对象,而某些字段可以通过向 https://graph.facebook.com/APP_ID? 发出 POST 请求来编辑? PROPERTY_1=PROPERTY_VALUE 这个字段未标记为可编辑:

并非所有应用程序属性都可以通过 API 进行编辑,请参阅 上面的表格指示属性是否可以编辑。

There is no such field as image_url in page tabs.

Actually tab icon is the application icon which is icon_url field of application object, and while some of fields may be edited by issuing POST request to https://graph.facebook.com/APP_ID?PROPERTY_1=PROPERTY_VALUE this field isn't marked as editable:

Not all app properties can be edited via the API, please refer to the properties in the table above for an indication of whether a property can be edited or not.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文