我编程的微博/ Facebook应用程序的iPhone。 我有我自己的Apache / PHP服务器。 我想只有将消费重点在应用程序,那么我将消费者的秘密在我自己的服务器,所以消费者的秘密是秘密。 调查几个演示应用程序(对谷歌)之后。我看到,它很容易与Facebook(只提供的AppId,不能提供AppSecret)。但随着Twitter的誓言库,我必须提供消费重点和消费者的秘密。 反正是有解决它?任何图书馆解决呢?
I'm programing an Twitter/Facebook app for iPhone. I have my own Apache/PHP server. I want to only place the Consumer Key in the app, then I place the Consumer Secret in my own server, so the Consumer Secret is in secret. After surveying several demo apps (on the Google). I see that it's easy with Facebook (only provide AppId, not provide AppSecret). But with Twitter's OAth libs, I must provide both Consumer Key and Consumer Secret. Is there anyway to solve it? Any library solved it?
我找到了解决方案,为我自己:考虑应用程序作为Web应用程序,而不是一个移动应用程序,由3部分组成:Facebook的/ Twitter的服务器,我自己的应用程序(阿帕奇/ PHP)服务器和浏览器(移动设备的Web视图)。在此架构下:我自己的应用程序服务器负责验证和其他任务(张贴到墙上),其存储的appid,应用程序秘密和userToken,所有的信息,它直接连接到Facebook的/ Twitter的服务器;移动设备只作为浏览器的代理角色,只显示Web视图指着我自己的服务器电源,它不会存储任何信息的链接
I found the solution for myself: Consider the app as an web app, not an mobile app, consists of 3 parts: Facebook/Twitter server, my own app (Apache/PHP) server and browser (the web view on mobile device). With this architecture: my own app server is responsible for authentication and other tasks (post to wall), it store appId, app Secret and userToken, all information, it connect to Facebook/Twitter server directly; the mobile device has role only as an browser agent, it only display a web view pointing to the link that my own server supply, it doesn't store any information
考虑Facebook和Twitter这两个文件的有关Web应用程序的身份验证的更多详细信息:
Consider these two documents of Facebook and Twitter about authentication for web app for more detail:
http://developers.facebook.com/docs/guides/web/#登录查看验证部分
https://dev.twitter.com/docs/auth/oauth
上一篇:在应用程序的Android运行bash命令应用程序、命令、oid、Andr
下一篇:我如何获得startActivityForResult(),调出电话联系只是一个列表(就像当我点击"人"图标)使用Android SDK的?就像、当我、只是一个、如何获得