What is FacebookDisplayName used for?

流过昼夜 提交于 2019-12-07 06:43:08

问题


We are currently changing the name of an app that is using the Facebook SDK for sign-in (and nothing else really), which means that for non-updated users the name of the Facebook app will not match the value of FacebookDisplayName.

During my testing I cannot find any impact on the value of FacebookDisplayName being incorrect, does anyone know what it is actually used for?


回答1:


Your facebook app is uniquely defined by the app ID. The FacebookDisplayName is just a textual identifier. You can change it at run time, than you can get it like shown in the documentation:

defaultDisplayName

//Get the default Facebook Display Name used by the SDK. If not explicitly set, the default will be read from the application's plist.
+ (NSString *) defaultDisplayName;

//Declared In: FBSettings.h

Anyway, on older versions of Facebook SDK:

Facebook SDK 3.5 requires that developers set the Facebook app name in the app's .plist under the key FacebookDisplayName. The value of this key must be an exact match to the value of the Display Name field under Settings in the Facebook devapp.



来源:https://stackoverflow.com/questions/31678683/what-is-facebookdisplayname-used-for

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!