[英]Golang facebook api huandu/facebook Post Description issue
嗨我正在使用golang huandu / facebook作为誓言客户发帖文章,但描述和名称字段未发布,只有状态消息和图片,链接发布..请帮忙
package main
import (
"fmt"
fb "github.com/huandu/facebook"
)
func main() {
res, e := fb.Post("/97876588/feed", fb.Params{
"type": "link",
"name": "test news is here",
"caption": "The caption of a link in the post ",
"picture": "http://img.tvguide.dk/tvnyheder/39ecaf74dbfa71c79225705c0d36bb09.jpg",
"link":"http://img.tvguide.dk/tvnyheder/39ecaf74dbfa71c79225705c0d36bb09.jpg",
"description":"hendes lille datter foregik nemlig under helt andre omstændigheder,er Tina Lund.",
"access_token": "access-token",
})
fmt.Println(e)
fmt.Println(res)
}
我发现了问题,这只是因为我链接到jpeg文件,当放置一个正确的链接,它的工作完美..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.