I have update leaderboard and achievements in GameCenter using Objective-C code. But the issue is whenever I open GameCenterController using code it shows Facebook Like unavailable. How can I fix it? I had also logged into Facebook in the Phone Settings. What I have to do?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In order to enable Facebook like in GameCenter, you need to create an App on Facebook and release it with same bundle identifier. This will enable the Facebook liking button, and maps the link to your App published on both App store as well as Facebook page.
Note: This will work only for App store environment (i.e., it won't work on Sandbox environment.)
Register your app here. Hope it helps.