简体   繁体   English

如何在不显示图片描述的情况下将图片 url 发布到群组?

[英]How to post an image url to a group without showing image description?

I'm trying to post an image url to a Facebook group I own.我正在尝试将图像 url 发布到我拥有的 Facebook 组。

This is how it's working as now:这就是它现在的工作方式:

在此处输入图像描述

I need to remove this part from the post:我需要从帖子中删除这部分:

在此处输入图像描述

This is my code:这是我的代码:

print("Publishing:", message)
>> Publishing:  6 0 % OFF
             $19.99 WITH CODE 60JOQVPP
             https://amzn.to/3HLNrRY
             NURSAL 24 Modes Dual Channel TENS EMS Unit Muscle Stimulator for Pain Relief Therapy, Rechargeable TENS Machine Pulse Massager with 12 Pcs Electrode Pads/Continuous Stable Mode/Memory Function

print("Group:", group)
>> Group: 676543620253608

print("Link:", info[3])
>> Link: https://m.media-amazon.com/images/I/71Q+-1LZ0zL._AC_SX679_.jpg

graph = GraphAPI(access_token=credentials['access_token'])
graph.put_object(group,'feed', message=message,link=info[3])

How can I post that image without the m.media-amazon.com in the footer?如何在页脚中没有 m.media-amazon.com 的情况下发布该图片?

Solved it by posting it as an image:通过将其作为图像发布来解决它:

POST {group_id}/photos发布 {group_id}/照片

parameters:参数:

url = link to image url url = 图片链接 url

caption = image description标题 = 图片描述

graph.put_object(group,'photos', caption=message,url=info[3])

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在不将URL包含在推文正文中的情况下,将带有图像的推文发布到网站? - How to post a tweet with an image to a website without including the URL in the tweet body? 从页面抓取图像,URL,描述 - Scraping image, url, description from page 未显示 Altair mark_image url 的图像 - Image not showing for Altair mark_image url HTML和Flask的新功能。 如何让用户无需登录即可提交图像和描述? - New to HTML and Flask. How to let a user submit an image and description without having to sign in? 如何使用 python 从电报中获取图像 url - How to get image url from telegram post with python 如何使用 opencv 将视频帧发送到 POST 图像 url? - How can I send a video frames in to POST image url with opencv? 模板图像未与Django中的媒体URL一起显示 - template image not showing with media url in django Django 1.9.5 filebrowser 3.7.2图像未显示并且模板图像url错误 - Django 1.9.5 filebrowser 3.7.2 image not showing and in template image url is wrong 在 HTML 页面上显示图像而不保存到磁盘 - Showing an image on an HTML page without saving to disk Matplotlib - 保存图像而不在 jupyter 笔记本中显示 - Matplotlib - Save image without showing in jupyter notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM