简体   繁体   中英

How to set FacebookDisplayName?

I recently hit a problem while trying to integrate FaceBook in an iOS app. Fortunately I found the answer here: Facebook SDK: app not registered as a URL Scheme

This is where I have a question: In the post mentioned above the answer gives the following as the second step:

Create a key called FacebookDisplayName with a string value, and add the Display Name you configured in the App Dashboard.

How do I write this Display Name in case it is changing according to the user Language Settings? I tried ${DisplayName} or ${CFBundleDisplayName} but I have no confidence I am using the right syntax and name.

In the InfoPlist.strings you can add

FacebookDisplayName = "AppName";

for all the languages you have implemented. This way it will be consistent to the facebook configured details regardless of what your app is really called on the device.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM