在我的网站中显示 Facebook Graph API 喜欢计数 [英] Display Facebook Graph API likes count in my site

查看:19
本文介绍了在我的网站中显示 Facebook Graph API 喜欢计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Facebook Graph API 中使用 fields=fan_count 从我的 Facebook 页面获取喜欢的数量,但我不知道如何在我的网站中显示计数器.

这是网址:

我只想显示 fan_count 字段,我该怎么做?

解决方案

不能,id 是主键.

I'm using fields=fan_count in the Facebook Graph API to get the number of likes from my facebook page, but i don't know how to display the counter in my site.

That is the URL:

https://graph.facebook.com/gamersaction/?fields=fan_count&access_token=access_token

The URL is returning the number of likes and the id of my page:

I want to display only the fan_count field, how can i do it?

解决方案

You can't, id is the primary key.

这篇关于在我的网站中显示 Facebook Graph API 喜欢计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆