本文介绍了Android facebook SDK - 怎么做?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有人知道如何做一个像Facebook的页面/人的代码?是否可能与图api?怎么样 ?你可以给代码示例吗?解决方案
@ user370003,你会介意提供更多的洞察力吗? API没有任何东西,您的答案并不是很大的帮助。
@Fabien,您可以使用网络视图,但问题是如果用户需要登录。你也可以使用:
startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse(url)));
这样它会启动一个Web浏览器,你可以使用你想要的字符串填充url转到。
Does anybody know how to do a Like of a facebook page/personn by code ? Is it possible with the graph api ? how ? Can you give code example ?
解决方案
@user370003, Would you mind providing more insight? The API does not have anything for this and your "Answer" is not much help as it stands.
@Fabien, you can use a webview but the problem is if the user needs to login. you can also use:
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
That way it will launch a web browser and you can just populate url with the string you would like to go to.
这篇关于Android facebook SDK - 怎么做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!