javascript - How would I import the number of like from a Facebook Business page to my website? -


i newer javascript developer , import number of likes facebook business page has (which different likes user of facebook gives). not sure start. looked @ graph api appears allows import user.likes not looking for. can point me in right direction of how can grab number of likes business has can display on our companies internal website?

https://graph.facebook.com/{page-id}?fields=likes&access_token=xxx 

reference: https://developers.facebook.com/docs/graph-api/reference/page

you can use app token if page not restricted age or location. if is, can use extended page token. both valid forever.

more information tokens:

btw, should not use tokens on client, better use server language make api call stored token - , should cache result or may run api limits if lot of users hit website @ once.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -