{"repo":"huandu/facebook","free":true,"listed":false,"github":"https://github.com/huandu/facebook","clone":"git clone https://github.com/huandu/facebook.git","description":"A Facebook Graph API SDK For Go.","language":"Go","stars":1479,"topics":["go","facebook","graph-api","sdk","batch"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"A Facebook Graph API SDK In Golang This is a Go package that fully supports the Facebook Graph API with file upload, batch request and marketing API. It can be used in Google App Engine. API documentation can be found on godoc. Feel free to create an issue or send me a pull request if you have any \"how-to\" question or bug or suggestion when using this package. I'll try my best to reply to it. Install If go mod is enabled, install this package with go get github.com/huandu/facebook/v2 . If not, call go get -u github.com/huandu/facebook to get the latest master branch version. Note that, since go1.14, incompatible versions are omitted unless specified explicitly. Therefore, it's highly recommended to upgrade the import path to github.com/huandu/facebook/v2 when possible to avoid any potential dependency error. Usage Quick start Here is a sample that reads my Facebook first name by uid. The type of res is fb.Result (a.k.a. map[string]interface{} ). This type has several useful methods to decode res to any Go type safely. If a type implements the json.Unmarshaler interface, Decode or DecodeField will use it to unmarshal JSON. Read a graph user object with a valid access token Read a graph search for page and decode slice of maps Use App and Session It's recommended to use App and Session in a production app. They provide more control over all API calls. They can also make code clearer and more concise. By default, all requests are sent to Facebook servers. If you wish to override","default_branch":null,"files":null,"tree":[],"storefront":"/r/huandu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/huandu/facebook/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}