Facebook.createApplication

From Facebook Developer Wiki

Jump to: navigation, search

Contents

Description

This FBJS method allows the calling application to create a child application. For more information, see the Create Application API.

Parameters

RequiredNameTypeDescription
required name string The name of the child application to create.
callback CallbackWithObject A callback function to be called when the user responds to the application creation dialog. Callback is called with an array as the first parameter: [new_app_id, new_api_key].

Example Requests

<a href="#" onclick="myOnClick();">Create app</a> <div id="new_app_info"></div> <script> function myOnClick() { Facebook.createApplication('mynewapp', onAppCreate); } function onAppCreate(response) { var return_div = document.getElementById('new_app_info'); return_div.setTextValue("New application info: new_id="+response['new_app_id']+" new_key="+response['new_api_key']); } </script>

See Also

FB.Connect.createApplication


Back to class public FB.Connect

reference