← Back

ofxInstagram

github.com/DHaylock/ofxInstagram · @DHaylock
OF 0.9 Bridges Web/Networking

openFrameworks addon that allows user to interact with the Instagram API

16 8 Last commit 10y ago Created 11y ago

README

#ofxInstagram

A openFrameworks addon for Instagram API.

ofxInstagram is an addon for openFrameworks (v0.8.0+) that allows users to utilise the Instagram API in C++. The addon lets you pull data from instagram such as image links, like and comments. Aswell as posting comments, liking and finding photographs.

If you would like to contribute to the addon feel free to fork, hack and modify the code. Also drop me a line and let me know how you end up using the addon.

@david_haylock

Requirements



  sudo apt-get install libcurl4-openssl-dev
  


What the addon includes



Getting Started

Here are a couple of helper guides to get started with ofxInstagram.

Instagram API

To start using the API, you need to get an access_token, which grants you access to the API elements. If you go to http://instagram.com/developer/authentication/ you can see how Instagram authorises your app. We'll be simplifying this process slightly.

ofxInstagram

The addon should have some examples already for you to try, but if you want to build a new project use the project generator.

There is a .crt file stored in the addon folder. You will need to copy this in to the data folder of your application. This allows you to securely connect to the Instagram API.

In the xcode.proj file go to Build Phases then to Run Scripts, add the following code. This copies the data from the data folder to the data folder of the .app file. cp -r bin/data "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Resources";

Copy the .crt and paste it into your apps data folder.

You'll need to add the libcurl.a file to the Link Binary with Libraries section. Found in Build Phases.

Get this addon

HTTPS
SSH