开发者

Android facebook SDK - how to do a like?

开发者 https://www.devze.com 2023-01-23 06:52 出处:网络
Does anybody know how to do a Like of a face开发者_StackOverflowbook page/personn by code ? Is it possible with the graph api ? how ? Can you give code example ?@user370003, Would you mind providing m

Does anybody know how to do a Like of a face开发者_StackOverflowbook 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.


There is no like feature on Facebook Graph API.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消