Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ SDK Usage Examples
IG.init({
client_id: YOUR_CLIENT_ID,
check_status: true, // check and load active session
cookie: true // persist a session via cookie
cookie: true, // persist a session via cookie
channelUrl: http://<domain>/channel.html // You have to set your website in the client settings to match this url
});

// client side access_token flow (implicit)
Expand All @@ -40,6 +41,15 @@ SDK Usage Examples
}
}, {response_type: 'code', scope: ['comments', 'likes']});

Channel File Example
------------------
The channel file helps addresses issues with cross domain communication in certain browsers.

Include the sdk in your channel.html file.

&lt;script src="//path/to/ig.js" /&gt;


Contributing
------------
In the spirit of [free software](http://www.fsf.org/licensing/essays/free-sw.html), **everyone** is encouraged to help improve this project.
Expand Down
Loading