Skip to content

mazti/facebook-go-business-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facebook Go Business SDK

This is the implementation in Go for Facebook Ads APIs Business SDK

Prerequisites

Installation & setup guide (Linux/macOS)

1. Installing Go with Homebrew

brew install go

Note: You can install Go by whichever mean you see fit. Homebrew is just our choice of preference.

2. Setup your GOPATH

# Source this in your favorite shell .rc (.bashrc, .zshrc, etc...)
# or just export it on the shell you're currently working on
export GOPATH=$HOME/place/to/put/my/go/code

Note: If you're using IDE embedded test runners like Goland configure this as an environment variable

# Make sure GO111MODULE=on is set on your working shell
# The process should be the same as how you setup your GOPATH (See section 2.)
export GO111MODULE=on

# You can use go built-in tool to clone the code
go get -d -v github.com/mazti/facebook-go-business-sdk

# Or man-handling it
mkdir -p $GOPATH/src/github.com/mazti
git clone https://github.com/mazti/facebook-go-business-sdk.git $GOPATH/src/github.com/mazti/facebook-go-business-sdk

4. Installing dependencies (Optional)

We love localizing project level dependencies so now we're going to download them using a go module utility.

# Make sure you're inside of the project directory first
go mod vendor

5. Run the tests

go test ./...

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages