| 1 |
## facebook |
| 2 |
|
| 3 |
Integrates your application with https://developers.facebook.com/docs/android/[Facebook Core SDK]. |
| 4 |
|
| 5 |
This integration allows to use Facebook Analytics. Various events are logged automatically (like starting the application or making a purchase). You can also log custom events (only _"level achieved"_ for now) by `TFacebook.LogAchievedLevel('level_name')` in Pascal (see `CastleFacebook` unit). |
| 6 |
|
| 7 |
You need to link the application to a Facebook application on http://developers.facebook.com/ : |
| 8 |
|
| 9 |
* In `CastleEngineManifest.xml`, you need to specify Facebook Application Id, like this: |
| 10 |
+ |
| 11 |
[,xml] |
| 12 |
---- |
| 13 |
<service name="facebook"> |
| 14 |
<parameter key="app_id" value="11223344" /> |
| 15 |
</service> |
| 16 |
---- |
| 17 |
|
| 18 |
* Fill the necessary information in the Facebook application settings. In particular: |
| 19 |
+ |
| 20 |
You need to provide to Facebook a "key hash" derived from your application signing keys. See the https://developers.facebook.com/docs/app-events/getting-started-app-events-android , section _"3. Add Your Development and Release Key Hashes"_. |
| 21 |
+ |
| 22 |
Do also steps mentioned there in _"4. Tell Us about Your Android Project"_. |