Facebook graph api 获取入住人数并将其显示在网站上的简单方法

Facebook graph api 获取入住人数并将其显示在网站上的简单方法,facebook-graph-api,web,checkin,Facebook Graph Api,Web,Checkin,亲爱的咖啡迷们 我是一个新手,从这个论坛中获益匪浅,至少贡献了一点。这些天来,我深入研究了这些文档,以找到一种简单的方法来获取我的组签入数量,并将其显示在我的网站上。我发现很难理解facebook文档,我想问你们中是否有人曾经这样做过,能提供一些代码、建议和想法 我要找的是一个简单的例子,比如显示一个div,上面写着:到目前为止,有x个人访问过Bordemondo B&B,其中x代表Facebook Api提供的入住次数 智利之路 是的,是否进行HTTP访问 并读取“签入”属性 { "id

亲爱的咖啡迷们

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

我要找的是一个简单的例子,比如显示一个div,上面写着:到目前为止,有x个人访问过Bordemondo B&B,其中x代表Facebook Api提供的入住次数

智利之路

是的,是否进行HTTP访问

并读取“签入”属性

{
   "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
}

Thx DMCS,是的,这是有道理的,我的雷达上有这个,我已经使用facebook阅读器来显示信息,但我的难题是如何通过代码查询它。我想这就是“DoaHTTPGet”-你有没有一个(初学者)的地方可以让我提到这个问题?使用Javascript的客户端将是最简单的。或者你可以在服务器端完成。取决于服务器的编程语言的语法或示例。对于JavaScriptSDK,只需
FB.api(“/bordemando”,函数(response){//do something with response data});'