将图像发布到墙上而不发布到相册

发布于 2025-01-08 18:39:25 字数 214 浏览 0 评论 0原文

使用 Facebook 网站时,我可以将图像上传到朋友的动态墙,而无需先将图像添加到相册。

我想使用 Graph API 做同样的事情。这可能吗?

如果不是,我很好奇其他人如何解决此限制 - 您是否首先在用户的朋友个人资料上创建相册?这可能吗?还是先上传到用户自己的相册?那么,朋友的墙可以链接到它吗?

问候,

蒂姆

When using the Facebook site I can upload an image to a friend's wall feed without having to add the image to an album first.

I'd like to do the same thing using the Graph API. Is this possible?

If it isn't, I'm curious as to how other people work around this limitation - do you create an album on the the user's friends profile first? Is that even possible? Or do you upload to the user's own album first? In that case will the friend's wall be able to link to it?

Regards,

Tim

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

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

发布评论

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

评论(3

天邊彩虹 2025-01-15 18:39:25

这将发布一个指向 url 提供的图像的链接,这意味着该图像必须保持托管。此外,该图像不是全尺寸的,就像您上传的一样。这是一个小预览图

This posts a link to the image the url provided, meaning the image has to stay hosted. Also, the image is not full size as if you had uploaded it. It's a small preview image

梦中楼上月下 2025-01-15 18:39:25

上传的图片不可能不放到用户的相册里。将图像上传到用户墙时,该图像数据将存储在特定于该应用程序的用户相册中。与任何其他相册一样,可以放置的图像数量最多有 200 张(左右)的限制。

不将其放置在用户相册中的唯一方法是使用图像托管位置的 URL。

It's impossible for an uploaded image not to be placed in a user's album. When uploading an image to a user's wall, that image data is stored in a user's album specific for the application. As with any other albums, there's a 200 (or so) max limit on how many images can be placed there.

The only way for it not to be placed in a user's album is to use a URL to where the image is hosted.

廻憶裏菂餘溫 2025-01-15 18:39:25

是的,你可以。您需要将请求发布到:

https://graph.facebook.com/<uid>/feed?message=xyz&picture=url_to_pic

这将在用户墙上创建一条包含图像的消息。它不会创建此图像或将其附加到相册中。

Yes, you can. You need to post a request to:

https://graph.facebook.com/<uid>/feed?message=xyz&picture=url_to_pic

This will create a message on the user's wall with the image included. It will not create or attach this image to an album.

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