FB.ui的属性“图片”可以吗可以从 HttpHandler 获取图像吗?
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正在寻找对此的答案。我有几乎完全相同的代码,但我的图像没有显示在提要对话框中。我得到了所有其他的东西来展示,但没有图像。我正在使用 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?