Reputation: 547
I am new to FB development trying to build a solution to get the number of facebook likes on the user's fan-page using facebook authentication (by providing an option to authorize our facebook app which can get the authorized user's access token). ex:https://graph.facebook.com/FANPAGE_ID?access_token=ACCESS_TOKEN&fields=name,fan_count
The problem is ,i have no idea how to get the access token of the fan-page, which provide access to the user's fan page (likes count) using any API methods .
However ,i have integrated successfully social sign-in using the following link. https://www.npmjs.com/package/angular4-social-login.
So please guide me a way to access the users(who authorized our fb app) facebook fan page likes count .
Thanks in advance
Upvotes: 0
Views: 599
Reputation: 11
You Can see the likes by using the following code 1 is to create your AppID and App Seceret Use follwing Code to check likes
<iframe src="//www.facebook.com/plugins/like.php?href=https://www.facebook.com/devronix.solutionspk/%2Fedforall&send=false&layout=standard&width=450&show_faces=false&action=like&colorscheme=light&font&height=35&appId=225116190942635" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
Upvotes: 1