//[[restapi:start|RESTful API]]// ====== Register Facebook Application ====== ==== Previous Versions ==== [[restapi:register_facebook_app_3_34|Tag 34]] ==== Overview ==== To post a message on a Facebook user's wall you will need first a [[https://developers.facebook.com/docs/apps/register|Facebook app]]. Once you have it you need to register it with the Campaign Manager to make it able to post your messages. Please keep in mind that Facebook will [[https://developers.facebook.com/docs/facebook-login/review|review]] your app before letting it post messages in other user's wall ==== URL ==== Parameters on the following URL are inside braces { } {base_url}/rest/api/tools/registerFacebookApplication/{instanceId}/{appName}/{fbAppId}/{fbAppSecret}/{redirectURL}/{publicKey}/{signature} ^ Parameter Name ^ Description ^ | instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | | appName | Your Facebook App's name which will post your messages. This parameter must be [[restapi:appx_ciphering|Base64 encoded]]. | | fbAppId | Your Facebook App's identifier, if you don't know it you can check it using the [[https://developers.facebook.com|Facebook Developer Site]] | | fbAppSecret | Your Facebook App's secret, if you don't know it you can check it using the [[https://developers.facebook.com|Facebook Developer Site]] | | redirectURL | The URL that users will be redirected to from Facebook after registration finished. This parameter must be [[restapi:appx_ciphering|Base64 encoded]]. | | publicKey | The public key to access this API. //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | | signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] | ==== Response ==== The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts. registerFacebookApplication OK Completed TestApp FACEBOOK R49BFFVx2TjXcJrrnktB reg_redirect_url https://staging.ogangitest.com/test/ client_secret ec5f5b4d47c62vd6996e2o9d54a4fe0b client_id 129516519273564 == Result parameters == ^ Parameter Name ^ Description ^ Possible Values ^ | application.name | Your Facebook App's name | Text | | application.platform | Platform of the application | FACEBOOK | | application.clientId | The public key to access this API. //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | Text | | application.info | Info of the application | Text |