문제

I have the following design of social likes:

enter image description here

Whenever a user hovers over normal social like icon the real social like button appears. When the user clicks on the like, I want the new count be displayed on my normal view. What is the easiest and fastest approach to do so?

I need to implement this for several social networks, not only for facebook.

도움이 되었습니까?

해결책

You need to build it on your own. Some sites do this to provide sending data to facebook/twitter/etc due to social plugin includes on its website.

You can access your URL "like" count like this: https://api.facebook.com/method/fql.query?query=select%20%20like_count%20from%20link_stat%20where%20url=%22http://google.com%22

So you will be able to create the "normal" state on your own. On mouse over you will be able to load the social plugins.

This website shows you an other example for handling this: http://www.heise.de/newsticker/meldung/Apple-vs-Samsung-Hohe-Geldstrafe-kein-Verkaufsverbot-Berufung-2136834.html

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