Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Last active December 25, 2015 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niraj-shah/6888486 to your computer and use it in GitHub Desktop.
Save niraj-shah/6888486 to your computer and use it in GitHub Desktop.
Adding applications to pages
<script type="text/javascript">
function addToPage() {
var obj = {
method: 'pagetab',
redirect_uri: '[redirect_url]',
};
FB.ui(obj);
}
</script>
<button onclick="addToPage();" class="btn">Install App</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment