문제

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.

다른 팁

There is no like feature on Facebook Graph API.

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

I found a code example in the facebook android sdk examples in github.

I'm using this in my Android widget "Facez" and it works fine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top