您好我使用golang huandu / facebook作为Oath客户端发帖,但描述和名称字段未发布,只有状态消息和图片,链接发布..请帮助
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)
}
答案 0 :(得分:0)
我发现了问题,这只是因为我链接到jpeg文件,当放置一个正确的链接时它工作得很完美..