如何在Android中使用Facebook API登出

如何在Android中使用Facebook API登出,第1张

如何在Android中使用Facebook API登出
facebook.logout(mainActivityContex);

要么

facebook.logout(this);

在Facebook SDK Facebook.java中-

public String logout(Context context)        throws MalformedURLException, IOException {    Util.clearcookies(context);    Bundle b = new Bundle();    b.putString("method", "auth.expireSession");    String response = request(b);    setAccessToken(null);    setAccessExpires(0);    return response;}`


欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/5500165.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-13
下一篇 2022-12-12

发表评论

登录后才能评论

评论列表(0条)

保存