Help us understand the problem. What is going on with this article?

Facebook の Graph API で自分の投稿を取得する (go)

More than 1 year has passed since last update.

次のライブラリーを使います。
A Facebook Graph API SDK For Go.

get_posts.go
// ---------------------------------------------------------------
//
//  get_posts.go
//
//                  Feb/22/2018
// ---------------------------------------------------------------
package main

import (
    "fmt"
    fb "../facebook"
)

func main() {
    fmt.Printf ("*** 開始 ***\n")

    res, _ := fb.Get("/me/posts", fb.Params{
        "access_token": "FG4EFFBgb938BAO2ouOc1235pjXC8YgsXZBYRnZB8nNvwZCP7dJDTXq7pRrZCVXDX4rmH9hvEZCUj8ZA2ihBlMKMoVWWwzaaRzI8tqA6zCAhgZB12idZCYxIxXNmC112GypCJlnsGdUgLLwAYp0PAQinfL3J123f6or2JYj65bt0QSp1umNabcfg",
        })

    fmt.Println("0:", res.Get("data.0"), "\n")
    fmt.Println("1:", res.Get("data.1"), "\n")
    fmt.Println("2:", res.Get("data.2"), "\n")
    fmt.Println("3:", res.Get("data.3"), "\n")
    fmt.Println("4:", res.Get("data.4"), "\n")

    fmt.Printf ("*** 終了 ***\n")
}

// ---------------------------------------------------------------
Makefile
get_posts: get_posts.go
    go build get_posts.go
clean:
    rm -f get_posts
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away