获取签到数量并将其显示在网站上的简单方法

发布于 2025-01-02 06:59:57 字数 276 浏览 0 评论 0原文

亲爱的咖啡迷们,

我是 Graph 的新手,从这个论坛中受益匪浅,也至少做出了一点贡献。这些天我深入研究文档,找到一种简单的方法来获取我的小组签到数量,并将其显示在我的网站上。我发现很难理解 facebook 文档,想问一下你们中是否有人曾经这样做过,可以提供一些代码、建议、想法吗?

我正在寻找的内容很简单,例如显示一个 div,上面写着: x 人们已经访问过 Bordemundo B&B 到目前为止 - 其中 x 代表 Facebook Api 提供的签到数量。

向智利致敬!

Dear fellow coffee junks,

I am new to the Graph and have been profiting from this forum a lot, also contributed at least a little. I dug myself into the documentation these days to find an easy way to fetch the number of my groups check ins to display them on my website. I found it quite hard to understand the facebook docs and wanted to ask if anyone of you has ever done that, can provide a little code, advice, ideas?

What I am looking for is as simple as for example displaying a div that says: x People have visited Bordemundo B&B so far - wheras x stands for the number of check ins provided by the Facebook Api.

Saludos desde Chile!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

另类 2025-01-09 06:59:57

是的,对 http://graph.facebook.com/Bordemundo 执行 HTTP GET

并阅读“签入” “ 财产。

{
   "id": "197019950350220",
   "name": "Bordemundo B&B Puerto Varas - www.bordemundo.com",
   "picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/157920_197019950350220_431834135_s.jpg",
   "link": "http://www.facebook.com/Bordemundo",
   "likes": 123,
   "category": "Hotel",
   "is_published": true,
   "website": "www.bordemundo.com",
   "username": "Bordemundo",
   "description": "Das Bed and Breakfast Bordemundo liegt im S\u00fcden Chiles, in Puerto Varas, Patagonien.\nWir vermieten Zimmer in zwei traditionell eingerichteten chilenischen Caba\u00f1as und einem\npatagonischen Bauernhaus.  Unsere G\u00e4ste genie\u00dfen einen wundersch\u00f6nen Ausblick auf den Llanquihue-See und die angrenzenden Vulkane. Mit einer voll ausgestatteten amerikanischen K\u00fcche und gro\u00dfem Wohnzimmer mit Kamin bleibt kein Wunsch offen.\nFr\u00fchst\u00fcck gibt es in Gemeinschaft, privat zu Euch auf das Zimmer oder auf einer wilden Wiese mit unvergesslichem Vulkan-Panorama. Dabei sind viele Zutaten und Produkte selbstgemacht und selbst organisch angebaut. Zum Bordemundo geh\u00f6ren ein Strand und vier Hektar naturbelassenes Land, das viele Ruhepunkte bietet. Obwohl mitten im Nirgendwo, braucht ihr nur wenige Minuten in den Stadtkern Puerto Varas. Zum Pazifik nach Puerto Montt sind es keine 20 Minuten. In der Gegend bieten sich unz\u00e4hlige aufregende Freizeitgestaltungsm\u00f6glichkeiten - Lakecrossing, Kayak, Kanu, Wasser-Jetski, Motorradfahrten, Wanderungen, Climbing und vieles mehr. Besucht uns und habt eine sch\u00f6ne Zeit. Wir freuen uns auf Euch!\n\nBordemundo Bed and Breakfast is situated in Puerto Varas, Patagonia, in Southern Chile.\nWe rent rooms in two traditional Chilean Caba\u00f1as and a Patagonian farm house. Our guests\nenjoy a beautiful view on lake Llanquihue and four volcanos. Our caba\u00f1as feature fully equipped American kitchens as well as huge living rooms with chimneys. Breakfast is served in a community area, on your room or at a cosy play in midst of a wild lakeside meadow with a wonderful view on volcano Osorno. Bordemundo is surrounded by a 4 hectare estate, featuring a lot of wild nature and cosy places to relax. Furthermore, we provide access to a private beach. Though being situated in the middle of nowhere you are only a few minutes away from the centre of Puerto Varas and no more than 20 minutes from Puerto Montt and the Pacific Ocean. Right at your doorstep there are dozens of activities to explore the Patagonian beauty ranging from lake crossing, canoing, motorbike tours, trekking tours to climbing and a lot more. Show up and enjoy the time of your life. See you soon at Bordemundo.",
   "location": {
      "street": "Camino a Ensenada,km3",
      "city": "Puerto Varas",
      "country": "Chile",
      "zip": "5550000 Region Los Lagos",
      "latitude": -41.33219,
      "longitude": -72.97047
   },
   "parking": {
      "street": 0,
      "lot": 1,
      "valet": 0
   },
   "public_transit": "Bus - Direction Ensenada/ Petrohue",
   "phone": "0056-9-62919443",
   "general_info": "green tourism:\ncrystal-clear water from a fount on our land,\norganic growing of food served as breakfast,\n4 hectares-estate of Patagonian nature in it's natural state,\nprivate beach in front of the caba\u00f1as,\nhuge panorama windows with view on Llanquihue, four volcanos,\ncosy rooms, comfortable beds, chimneys and American kitchens, fully equipped, access to garden, working holidays possible for any kind of craftsmen and artists",
   "can_post": true,
   "checkins": 3,
   "talking_about_count": 31
}

Yes, do an HTTP GET to http://graph.facebook.com/Bordemundo

and read the "checkins" property.

{
   "id": "197019950350220",
   "name": "Bordemundo B&B Puerto Varas - www.bordemundo.com",
   "picture": "http://profile.ak.fbcdn.net/hprofile-ak-snc4/157920_197019950350220_431834135_s.jpg",
   "link": "http://www.facebook.com/Bordemundo",
   "likes": 123,
   "category": "Hotel",
   "is_published": true,
   "website": "www.bordemundo.com",
   "username": "Bordemundo",
   "description": "Das Bed and Breakfast Bordemundo liegt im S\u00fcden Chiles, in Puerto Varas, Patagonien.\nWir vermieten Zimmer in zwei traditionell eingerichteten chilenischen Caba\u00f1as und einem\npatagonischen Bauernhaus.  Unsere G\u00e4ste genie\u00dfen einen wundersch\u00f6nen Ausblick auf den Llanquihue-See und die angrenzenden Vulkane. Mit einer voll ausgestatteten amerikanischen K\u00fcche und gro\u00dfem Wohnzimmer mit Kamin bleibt kein Wunsch offen.\nFr\u00fchst\u00fcck gibt es in Gemeinschaft, privat zu Euch auf das Zimmer oder auf einer wilden Wiese mit unvergesslichem Vulkan-Panorama. Dabei sind viele Zutaten und Produkte selbstgemacht und selbst organisch angebaut. Zum Bordemundo geh\u00f6ren ein Strand und vier Hektar naturbelassenes Land, das viele Ruhepunkte bietet. Obwohl mitten im Nirgendwo, braucht ihr nur wenige Minuten in den Stadtkern Puerto Varas. Zum Pazifik nach Puerto Montt sind es keine 20 Minuten. In der Gegend bieten sich unz\u00e4hlige aufregende Freizeitgestaltungsm\u00f6glichkeiten - Lakecrossing, Kayak, Kanu, Wasser-Jetski, Motorradfahrten, Wanderungen, Climbing und vieles mehr. Besucht uns und habt eine sch\u00f6ne Zeit. Wir freuen uns auf Euch!\n\nBordemundo Bed and Breakfast is situated in Puerto Varas, Patagonia, in Southern Chile.\nWe rent rooms in two traditional Chilean Caba\u00f1as and a Patagonian farm house. Our guests\nenjoy a beautiful view on lake Llanquihue and four volcanos. Our caba\u00f1as feature fully equipped American kitchens as well as huge living rooms with chimneys. Breakfast is served in a community area, on your room or at a cosy play in midst of a wild lakeside meadow with a wonderful view on volcano Osorno. Bordemundo is surrounded by a 4 hectare estate, featuring a lot of wild nature and cosy places to relax. Furthermore, we provide access to a private beach. Though being situated in the middle of nowhere you are only a few minutes away from the centre of Puerto Varas and no more than 20 minutes from Puerto Montt and the Pacific Ocean. Right at your doorstep there are dozens of activities to explore the Patagonian beauty ranging from lake crossing, canoing, motorbike tours, trekking tours to climbing and a lot more. Show up and enjoy the time of your life. See you soon at Bordemundo.",
   "location": {
      "street": "Camino a Ensenada,km3",
      "city": "Puerto Varas",
      "country": "Chile",
      "zip": "5550000 Region Los Lagos",
      "latitude": -41.33219,
      "longitude": -72.97047
   },
   "parking": {
      "street": 0,
      "lot": 1,
      "valet": 0
   },
   "public_transit": "Bus - Direction Ensenada/ Petrohue",
   "phone": "0056-9-62919443",
   "general_info": "green tourism:\ncrystal-clear water from a fount on our land,\norganic growing of food served as breakfast,\n4 hectares-estate of Patagonian nature in it's natural state,\nprivate beach in front of the caba\u00f1as,\nhuge panorama windows with view on Llanquihue, four volcanos,\ncosy rooms, comfortable beds, chimneys and American kitchens, fully equipped, access to garden, working holidays possible for any kind of craftsmen and artists",
   "can_post": true,
   "checkins": 3,
   "talking_about_count": 31
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文