<commit_before>Steps For Facebook Plugin
----

* sign up to be a [Facebook Developer](http://developers.facebook.com)

* create a new __APP__

* create a test version of this __App__

* under __Roles__ create a __Test User__. Ensure that you set a password for this test user and assign the permissions you need.

* integrate sdkbox `sdkbox import facebook`

* in the info.plist file you need to specify a few additional keys
```xml
<key>CFBundleURLTypes</key>
<array>
<dict>
    <key>CFBundleURLName</key>
    <string></string>
    <key>CFBundleURLSchemes</key>
    <array>
        <string>fb655158077954837</string>
    </array>
</dict>
</array>
<key>FacebookAppID</key>
<string>655158077954837</string>
<key>FacebookDisplayName</key>
<string>MyTestApp</string>
```

* ios: ensure that you have added the following to `AppController.mm`:
```objc
(void)applicationDidBecomeActive:(UIApplication *)application {
 [FBSDKAppEvents activateApp];
}
```
```objc
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
 return [[FBSDKApplicationDelegate sharedInstance] application:application
        didFinishLaunchingWithOptions:launchOptions];
}
```
```objc
- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
            sourceApplication:(NSString *)sourceApplication
            annotation:(id)annotation
{
    return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication
        annotation:annotation];
}
```<commit_msg>update android step for facebook plugin<commit_after>Steps For Facebook Plugin
----

* sign up to be a [Facebook Developer](http://developers.facebook.com)

* create a new __APP__

* create a test version of this __App__

* under __Roles__ create a __Test User__. Ensure that you set a password for this test user and assign the permissions you need.

* integrate sdkbox `sdkbox import facebook`

## iOS

* in the info.plist file you need to specify a few additional keys

```xml
<key>CFBundleURLTypes</key>
<array>
<dict>
    <key>CFBundleURLName</key>
    <string></string>
    <key>CFBundleURLSchemes</key>
    <array>
        <string>fb655158077954837</string>
    </array>
</dict>
</array>
<key>FacebookAppID</key>
<string>655158077954837</string>
<key>FacebookDisplayName</key>
<string>MyTestApp</string>
```

* ios: ensure that you have added the following to `AppController.mm`:

```objc
(void)applicationDidBecomeActive:(UIApplication *)application {
 [FBSDKAppEvents activateApp];
}
```
```objc
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
 return [[FBSDKApplicationDelegate sharedInstance] application:application
        didFinishLaunchingWithOptions:launchOptions];
}
```
```objc
- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
            sourceApplication:(NSString *)sourceApplication
            annotation:(id)annotation
{
    return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication
        annotation:annotation];
}
```

## Android

* Configure your __APP__ on Facebook follow [Android Quick Start](https://developers.facebook.com/quickstarts/?platform=android)

* Open `res/values/strings.xml`

* Replace `facebook_app_id` and value as your `Facebook App ID`

* Open `project.properties`

* Set `target=android-15`

**NOTE:** minSdkVersion version is android-15 (Android 4.0.3)

{'fraction_non_alphanumeric': 0.11381653454133635, 'fraction_numerical': 0.018969422423556058, 'mean_word_length': 5.080895008605852, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4596134', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1005, 'n_words': 272}