<commit_before># Native Facebook for IonicFramework

# Dependencies
* https://github.com/Wizcorp/phonegap-facebook-plugin

# Steps
* install the platform
  * ionic platform add ios
  * ionic platform add android
* install the plugin
  * cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="123456789" --variable APP_NAME="myApplication"
* install browser libs
  * bower install cordova-facebook-connect-plugin
  
# Troubleshooting
* Error 4201
  * It could be due to wrong APP_ID. do adb logcat and check for FB error. If need to remove platform (e.g. cordova platform remove android) and clean up plugins/fetch.json
<commit_msg>Added step for Ionic library and constants.js<commit_after># Native Facebook for IonicFramework

# Dependencies
* https://github.com/Wizcorp/phonegap-facebook-plugin

# Steps
* install Ionic libraries with a blank template
  * ionic start myApplication blank
* install the platform
  * ionic platform add ios
  * ionic platform add android
* install the plugin
  * cordova plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="123456789" --variable APP_NAME="myApplication"
* install browser libs
  * bower install cordova-facebook-connect-plugin
* update facebookAppId in www/js/constants.js, used by cordova-facebook-connect-plugin during browser mode 
  
# Troubleshooting
* Error 4201
  * It could be due to wrong APP_ID. do adb logcat and check for FB error. If need to remove platform (e.g. cordova platform remove android) and clean up plugins/fetch.json

{'fraction_non_alphanumeric': 0.0772669220945083, 'fraction_numerical': 0.016602809706257982, 'mean_word_length': 4.422145328719723, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5905175', 'n_tokens_mistral': 489, 'n_tokens_neox': 440, 'n_words': 163}