小编mik*_*lin的帖子

即使定义了宽度和高度,Facebook 打开图形图像也不会显示在第一个共享上

在过去几周内,显示共享页面的窗口(提交共享之前)在第一次共享页面时不会显示指定的 og:image。该图像显示在共享帖子本身和以下共享请求上。

我们通过 FB 调试器运行页面并收到以下消息

提供的“og:image”属性尚不可用,因为新图像是异步处理的。为了确保新 URL 的共享包含图像,请使用“og:image:width”和“og:image:height”标签指定尺寸。了解更多

问题是我们确实定义了 og:image:width 和 og:image:height 标签,FB 调试器甚至在显示此消息的同一页面上显示它们...请参阅下面的附图。

知道可能是什么原因造成的吗?

FB调试器截图

facebook facebook-graph-api facebook-opengraph

5
推荐指数
1
解决办法
2446
查看次数

Error on http requests from ionic iOS native to WP rest API (works on web view and DevApp)

We are trying to issue http requests from our ionic app to a Wordpress server (REST API) and get the following error: {"_body":{"isTrusted":true},"status":0,"ok":false,"statusText":"","headers":{},"type":3,"url":null}.

The requests are working fine when we use the web view or ionic DevApp and are failing on iOS devices.

What we did so far:

  • We verified the requests work fine through the DevApp and the web view.
  • We relaxed the cordova whitelist plugin (see our config.xml below).
  • We verified CORS are enabled on our servers …

cordova ionic-framework wordpress-rest-api

4
推荐指数
2
解决办法
1732
查看次数