FB.ui的属性“图片”可以吗可以从 HttpHandler 获取图像吗?

发布于 2025-01-07 15:37:21 字数 829 浏览 4 评论 0原文

FB.ui 的“图片”属性可以从自定义 Httphandler(在 .net 中编写)获取图像数据吗?或者 Facebook 强制图像路径为服务器路径。我试图执行的代码是这样的:

 FB.ui(
                  {
                      method: 'feed',
                      name: 'Facebook Dialogs',
                      link: 'http://mydemosite/',
                      picture: 'http://mydemosite.com/PromoImage.ashx?id=3',
                      caption: 'My Promo',
                      description: pDescription
                  },
                  function (response) {
                      if (response && response.post_id) {
                          alert('Post was published.');
                      } else {
                          alert('Post was not published.');
                      }
                  }
            );

在这方面需要帮助。

问候

阿布舍克

Can FB.ui's 'Picture' Attribute fetch an image data from a custom Httphandler (wrtitten in .net) or Facebook mandates the image path to be a server path. The code I am trying to execute is something like this:

 FB.ui(
                  {
                      method: 'feed',
                      name: 'Facebook Dialogs',
                      link: 'http://mydemosite/',
                      picture: 'http://mydemosite.com/PromoImage.ashx?id=3',
                      caption: 'My Promo',
                      description: pDescription
                  },
                  function (response) {
                      if (response && response.post_id) {
                          alert('Post was published.');
                      } else {
                          alert('Post was not published.');
                      }
                  }
            );

Need help in this regard.

Regards

Abhishek

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

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

发布评论

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

评论(1

暗藏城府 2025-01-14 15:37:21

正在寻找对此的答案。我有几乎完全相同的代码,但我的图像没有显示在提要对话框中。我得到了所有其他的东西来展示,但没有图像。我正在使用 ashx 处理程序从数据库流式传输图像。
没有错误或任何图像只是没有出现。
有人对此有答案吗?

Looking for an anwser to this to. I have almost the exact same code and my image is not showing in the feed dialog. i get all the other stuff to show but there is no image. I am using an ashx handler to stream image from database.
There is no error or anything the image just doesnt appear.
Anyone has an anwser to this?

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