วิธีการแสวงหา Facebook API Key

เริ่มโดย ohmohm, 08 สิงหาคม 2010, 00:56:54

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

ohmohm

เผื่อใครต้องการรหัส Facebook API Key ไว้ใช้กับสคริปต่างๆ

ไปที่ http://developers.facebook.com/setup กรอกข้อมูลเกี่ยวกับเว็บเราลงไป แล้วกด Create application


หน้าต่อไป มันแสดง api key เลย และแถมโค้ดตัวอย่าง เราเอามาทดลองหรือทดสอบเลยก็ได้ ( save ลง html แล้วเรียกเลย ) ถ้ามันใช้ได้แต่ที่ตัวสคริปเรากลับใช้ไม่ได้แสดงว่าปัญหาเป็นที่ตัวสคริปของเรา ไม่ได้เป็นที่ Facebook

แต่หน้าที่เห็นนี้ ไม่ได้แสดง รหัส API หลัก ให้ไปดูที่ http://www.facebook.com/developers/apps.php

ohmohm

อ้อ โค้ดตัวอย่าง จะเป็นแบบนี้นะครับ เปลี่ยน 1111111111111111 ให้เป็น app id ของเราด้วยนะครับ

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:fb="http://www.facebook.com/2008/fbml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  </head>
  <body>
    <p><fb:login-button autologoutlink="true"></fb:login-button></p>
    <p><fb:like></fb:like></p>

    <div id="fb-root"></div>
    <script>
      window.fbAsyncInit = function() {
        FB.init({appId: '1111111111111111', status: true, cookie: true,
                 xfbml: true});
      };
      (function() {
        var e = document.createElement('script');
        e.type = 'text/javascript';
        e.src = document.location.protocol 
          '//connect.facebook.net/th_TH/all.js';
        e.async = true;
        document.getElementById('fb-root').appendChild(e);
      }());
    </script>
  </body>
</html>


warawut18


xvlnw.com

สมัครไม่ได้ง่า

อ้างถึงSorry, an error has occurred.

We're working on getting this fixed as soon as we can.
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

saknarin


ohmohm

อ้างถึงจาก: xvlnw.com ใน 11 สิงหาคม 2010, 10:19:26
สมัครไม่ได้ง่า

อ้างถึงSorry, an error has occurred.

We're working on getting this fixed as soon as we can.
ลองอีกทีครับ บางที fb มันถูกใช้งานหนักมากๆแล้วเอ๋อ

espandaz

เอาไปใช้ทำอะไรได้มั้งอ่ะครับ

ยกตัวอย่างการใช้งานหน่อยได้ไหมครับ  :wanwan017:
[direct=http://www.enrichinter.com]ราคาusb[/direct] [direct=http://www.futeraworldfootball.com/landing.php]เกมส์ฟุตบอล[/direct] [direct=http://sstreez.com]ต้นไทรเกาหลี[/direct] [direct=http://sstreez.com]ต้นคริสติน่า[/direct]

ohmohm

อ้างถึงจาก: espandaz ใน 11 สิงหาคม 2010, 22:24:28
เอาไปใช้ทำอะไรได้มั้งอ่ะครับ

ยกตัวอย่างการใช้งานหน่อยได้ไหมครับ  :wanwan017:
ใช้เพื่อเรียกส่วนเสริมของ Facebook ได้ ตัวอย่าง
http://www.aitcheye.com/earth/trees/trees_2.html
http://www.thaiseoboard.com/index.php?topic=131701.0

ardzmundee


Tiaw

ขอบคุณที่แบ่งปันความรู้..เป็นกำลังใจครับ..

nantripdotcom

คนรักการตกปลา มาเลยจร้า...... ฟิชชิ่งร้อยแปด ชุมชนแห่งการตกปลา
[direct=http://www.fishing108.com]ตกปลา[/direct] [direct=http://www.fishing108.com]ตกปลาช่อน[/direct] [direct=http://www.fishing108.com]รอกตกปลา[/direct]
[direct=http://www.fishing108.com]ตกปลาทะเล[/direct]

มา Update [direct=http://www.moohitech.com]ข่าวไอที[/direct]ล่าสุด

mdct39511


mallikafurniture

เข้าบอร์ดนี้ทีไรได้ความรู้เพิ่มเติมตลอด
ขอบคุณครับ
mallikafurniture.com
facebook.com/teakwoodfurniture
facebook.com/mallikafurniture
mallikafurniture.wordpress.com
mallikafurniture.blogspot.com

ieiq

ทำดีได้ดี เพราะทำด้วยใจ

kokarat


kokarat

#15
ดูตัวอย่างครับ http://www.dealsable.com

อ้างถึงจาก: espandaz ใน 11 สิงหาคม 2010, 22:24:28
เอาไปใช้ทำอะไรได้มั้งอ่ะครับ

ยกตัวอย่างการใช้งานหน่อยได้ไหมครับ  :wanwan017:

eyourhand

เอาไปใช้กรอกในส่วนของ facebook comment Plugin เป็นต้นครับ ที่เห็นตามเวป หรือตามบล็อก ที่เวลาโพสความเห็น จะอนุญาติเฉพาะ คนมีการlogin เข้าเฟสบุคเท่านั้นจึงโพสได้

[direct= https://www.facebook.com/share/1CS2KVrYoTgRKAKA/?mibextid=LQQJ4d]บริการรันบอทรายเดือนเพียง 1,000 บาท ด้วย 7days Crypto Spot Grid & Sell MT5 BOT เพื่อไม่พลาดทำกำไรสภาวะตลาดขาลง หรือ sideway down ขณะที่ตลาดขาขึ้น ก็ทำกำไรได้เช่นกัน ติดต่อหรือติดตามเพจ คลิ๊กลิ้งค์นี้ได้เลยครับ[/direct]

[direct=https://docs.google.com/document/d/1--EVqdmIBAU5EruKW7c1DWjS8xNdt1c4eYhocDR-L9w/edit]คู่มือ เงื่อนไขการเทรดของบอทครับ คลิ๊กที่นี่อ่านได้เลย[/direct]

supergomez789


Hill Tribe Silver

[direct=http://www.karensilverbiz.com]Karen Silver[/direct] | [direct=http://www.karensilverbiz.com]Hill Tribe Silver[/direct] | [direct=http://www.karensilverbiz.com]Karen Hill Tribe Silver[/direct] | [direct=http://www.karensilverbiz.com]Thai Karen Silver[/direct] |[direct=http://www.karensilverbiz.com]Thai Hill Tribe Silver[/direct]