Facebook API key for an open source CMS

这一生的挚爱 提交于 2019-12-11 22:05:52

问题


I'm currently making a CMS and I would like to use some Facebook functionnalities.

The problem is that I need an API Key for that. So I'm wondering that if I have an API Key can I share it with my open source cms project to anyone? And can anyone use it with my CMS?


回答1:


You have two options.

  1. Create an app for each installation of the CMS, then set app secret and ID in the CMS configuration file.

  2. If you want all installations to use the same app securely you will need a loop back server (i.e. the CMS installation makes a call to your server, which in turn makes a call to Facebook and returns the results).




回答2:


Do not share your App Secret with anyone. The App Secret is used to sign the signed_request that is passed to you after Facebook authentication. With the App Secret, a hacker can impersonate anyone to use your app because he can pass anything and sign it as if it is from Facebook.



来源:https://stackoverflow.com/questions/9596194/facebook-api-key-for-an-open-source-cms

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