Android facebook SDK - how to do a like?

核能气质少年 提交于 2019-12-11 11:14:49

问题


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 ?


回答1:


@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.




回答2:


There is no like feature on Facebook Graph API.

You can find the Like Button Reference Guide on Facebook Developers Page.



来源:https://stackoverflow.com/questions/4076604/android-facebook-sdk-how-to-do-a-like

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!