Hi !
i try build my app and i have this error:
AAPT: error: resource string/fb_app_id (aka myapp:string/fb_app_id) not found.
AAPT: error: resource string/fb_app_name (aka myapp:string/fb_app_name) not found.
Any help please? I try the commands
ionic cordova platform rm android
ionic cordova platform add android
ionic cordova build android
But the results not were succesfully
cordova: 8.0.0
cordova-android: 7.0.0
android-target: android-26
plugin-facebook4: 1.9.1
Hi@homeres
This issue is related with your facebook appid and appname
Try to add the right appid and appname while installing the plugin
ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="Your APPID" --variable APP_NAME="Your APPNAME"
Thanks for your response @vibinflogesoft .
I checked my appid and my appname and it’s right
Same thing here. Did you find the problem?
See documentation for cordova-android >= v7
# Facebook Requirements and Set-Up [Android]
To use this plugin you will need to make sure you've registered your Facebook app with Facebook and have an APP_ID (https://developers.facebook.com/apps).
If you plan on rolling this out on Android, please note that you will need to [generate a hash of your Android key(s) and submit those to the Developers page on Facebook](https://developers.facebook.com/docs/android/getting-started) to get it working. Furthermore, if you are generating this hash on Windows (specifically 64 bit versions), please use version 0.9.8e or 0.9.8d of [OpenSSL for Windows](http://code.google.com/p/openssl-for-windows/downloads/list) and *not* 0.9.8k. Big ups to [fernandomatos](http://github.com/fernandomatos) for pointing this out!
## Install
This plugin requires [Cordova CLI](https://cordova.apache.org/docs/en/5.0.0/guide_cli_index.md.html)
To install the plugin in your app, execute the following (replace variables where necessary):
```sh
# Create initial Cordova app
$ cordova create myApp
$ cd myApp/
$ cordova platform add android
# Remember to replace APP_ID and APP_NAME variables
$ cordova plugin add https://github.com/jeduan/cordova-plugin-facebook4 --save --variable APP_ID="123456789" --variable APP_NAME="myApplication"
```
This file has been truncated. show original
1 Like
The easiest solution is to
Add string resources into (I am using linux ubuntu this is my ionic project path) file : /home/user/js/fb4/platforms/android/app/src/main/res/values/strings.xml
<string name="fb_app_id">59523234234</string>
<string name="fb_app_name">hajmo.ba</string>
and my project now works!
As mentioned here
Most of the steps described in the doc did not work for me, here is what i have done to solve this issue
Configure the project with your FB app id in the res/values/facebookconnect.xml file. For example:
<resources>
<string name="fb_app_id">123456789</string>
<string name="fb_app_name">TEST</string>
</resources>
Then, type in your terminal the following commands:
(I did not run that, the platform was already installed)
cordova platform add android
cordova -d plugin add ht…
@sunojvijayan if you go that way, don’t forget that next time you will remove/add your platform you will have to enter these keys again