I want to set application metadata using code. Is this possible in Android? Trying to set the Facebook app id to code not inside the manifest.
meta-data android:name="com.facebook.sdk.ApplicationId"android:value="@string/applicationId"
Please help me.
This link shows how to add facebook app id: ADD DYNAMIC Facebook APP ID
I want to set application metadata using code. Is this possible in android?
No, It is Immpossible. The manifest is parsed at compile time → you cannot add metadata at runtime.
Hello everyone that I know above is suitable for the old version of sdk, but in
facebook sdk 4+
no session class
You can simply do this using this code:
FacebookSdk.setApplicationId(APP_ID);
Thanks!
Source: https://habr.com/ru/post/982762/More articles:Is it possible to use python script access variables defined in an interactive session? - pythonAdding an identifier to an existing project - model-view-controllerLocalytics - software application key set - androidRails 4: set cookie in request / response if JSON type? - jsonIs there any REST API / DSL request standard for expressing complex filters in a GET URL? - restprint the output of the same line using the console log in javascript - javascriptProblem playing video on Recyclerview - javaHow to use custom delayed_job jobs with ActiveJob? - ruby | fooobar.comExtract the last 4-digit number from a series in R using stringr - regexSend HTML email address in Appengine [PYTHON] using HTML file - pythonAll Articles