dongshi2458 2016-10-30 12:24
浏览 48
已采纳

Golang facebook api huandu / facebook发布描述问题

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)
}
  • 写回答

1条回答 默认 最新

  • doucang6914 2016-10-30 12:57
    关注

    I found the problem , it is just because of i am linking to the jpeg file, when place a proper link it works perfect..

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部