![](/img/trans.png)
[英]How to post a tweet with an image to a website without including the URL in the tweet body?
[英]How to post an image url to a group without showing image description?
我正在嘗試將圖像 url 發布到我擁有的 Facebook 組。
這就是它現在的工作方式:
我需要從帖子中刪除這部分:
這是我的代碼:
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])
如何在頁腳中沒有 m.media-amazon.com 的情況下發布該圖片?
通過將其作為圖像發布來解決它:
發布 {group_id}/照片
參數:
url = 圖片鏈接 url
標題 = 圖片描述
graph.put_object(group,'photos', caption=message,url=info[3])
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.