简体   繁体   English

使用来自Webservice的访问令牌的Android facebook SDK 3.0发布

[英]Android facebook SDK 3.0 post using access token from webservice

I am creating an app for a site. 我正在为网站创建一个应用程序。 the site has the option to sync there account with the their facebook account. 该网站可以选择将那里的帐户与其Facebook帐户同步。 when the person log in the Android app the access token of the user is recived through webservice. 当用户登录Android应用程序时,将通过网络服务获取用户的访问令牌。 how can i use this access token to open a sesson and post to facebook using facebook SDK 3.0? 我如何使用Facebook SDK 3.0使用此访问令牌打开sesson并发布到Facebook?

There is method for opening session with accessToken-> 有使用accessToken->打开会话的方法

session.openActiveSessionWithAccessToken(context, accessToken, callback); session.openActiveSessionWithAccessToken(上下文,accessToken,回调);

It will return session object, then you can use returned Session object to do further operations. 它将返回会话对象,然后您可以使用返回的会话对象进行进一步的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM