Hi I am using golang huandu/facebook as Oath client to post articles, But the description and name fields does not get posted, only the status message and the image , link get published.. Please help
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文件,当放置一个正确的链接,它的工作完美..
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.