在外部流动图书馆用户的社交网络整合 [英] User social network integration in external mobile library

查看:90
本文介绍了在外部流动图书馆用户的社交网络整合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发针对移动应用库。
图书馆是一个包装,以我的网络API(REST),为了便于在code中的实施提供多个对象。

I'm developing a library for mobile apps. The library is a wrapper to my web API (REST), and provide several objects in order to facilitate the implementation in code.

我的API融入社会(Facebook的,例如) - 在我的单机应用程序,该应用程序是要求对Facebook的权限和使用API​​发送令牌到服务器

My API required social integration (Facebook, for example) - in my stand-alone app, the app is asking Facebook for permissions and send the token to the server using the API.


  1. 该应用程序,这将我的图书馆整合已经是需要融入社会,从它的用户。

  1. The apps, that going to integrate my library is already require social integration from it's users.

谁去使用这个库的开发人员,知道图书馆需要融入社会,并愿意将自己的库所需的权限添加到他们的应用程序。

The developers who going to use this library, knows that the library require social integration, and willing to add my library required permissions to their apps.

(我的问题是局部的建筑并部分约最佳/常见的做法

Questions:

(My question is partially architectural and partially about best/common practice)


  1. 我可以使用主机应用程序令牌与社交网络互动? (例如,张贴在代表用户的图像)。

  1. Can I use the host apps token to interact with the social network? (for example, posting an image in behalf of user).

1.1。如果答案是的,有没有什么限制?以后我可以访问这些数据从服务器(无主机应用密钥)?

1.1. If the answer is "yes", is there any limitations? Can I later access this data from server (without the host app secret key)?

1.2。如果在,可我的媒体库请求许可的答案吗? (即打开主机应用程序Facebook的权限对话框)

1.2. If the answer in "no", can my library ask for permission? (i.e. open Facebook permissions dialog in the host app)

和,是否有任何其他/更好的解决方案这个问题?

And, is there any other/better solution for this problem?

谢谢!

推荐答案

是的,你可以使用应用程序生成的令牌与Facebook互动。令牌取决于用户,应用程序和权限。因此对于同一个用户,但不同的应用程序将是不同的令牌。
上传图片,并张贴在您需要设置权限的令牌生成和/或应用一代在Facebook上的时间的时间墙壁。

Yes you can use app generated token to interact with facebook. token depend on user, app, and permissions. so for same user but different app it will be different token. to upload images and post on walls you need to set permission on time of token generation and/or time of app generation on facebook.

最后一件事,当你张贴确保隐私设置和每一个令牌60天到期,虽然可以产生长期的记号了。

last thing when you post make sure setup privacy and every token expires in 60days though you can generate long term tokens too.

这篇关于在外部流动图书馆用户的社交网络整合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆