• About Me
  • My Slides

WindyGallery's Weblog

~ I am a normal man in quite imperfect little World.

WindyGallery's Weblog

Tag Archives: facebook

Facebook ID

03 Sunday Aug 2014

Posted by windygallery in Developer

≈ 1 Comment

Tags

facebook

เขียนเก็บไว้เป็นประโยชน์ในการพัฒนาต่อยอดซักเล็กน้อย
ถ้าเราเปิด browser แล้วพิมพ์ http://graph.facebook.com/ชื่อโปรไฟล์เนม
เราจะได้ข้อมูลจาก faebook graph api ออกมาอยู่ในรูปแบบ jSON เช่น

{
   "id": "1234567890",
   "first_name": "Rawin",
   "gender": "male",
   "last_name": "Windygallery",
   "locale": "en_US",
   "name": "Rawin Windygallery",
   "username": "windygallery"
}

ซึ่ง id  ก็คือ id ไม่ได้เอาไปใช้ทำอะไรเท่าไหร่
แต่ที่สำคัญและเอาไปใช้ต่อยอดได้คือ facebook id (คนละตัวกันและตัวย่อคือ fbid)
สามารถดูได้จากรูป profile ของตัวเอง (จะมีค่า parameter ตัวนี้)

ยกตัวการประยุกต์ใช้ เช่น ต้องการเอารูปจาก facebook มาใช้งานก็เรียกผ่าน

http://graph.facebook.com/ข้อมูลเฟสบุคไอดี/picture?type=square

ข้อมูลเพิ่มเติม
https://developers.facebook.com/docs/graph-api/reference/v2.0/user/picture

 

Subscribe

  • Entries (RSS)
  • Comments (RSS)

Archives

  • August 2017
  • November 2015
  • August 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • May 2012
  • February 2011
  • January 2011
  • August 2010
  • June 2010
  • May 2010
  • April 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • April 2009
  • March 2009
  • November 2008
  • October 2008

Categories

  • Developer
  • Events
  • Games
  • IDeas
  • Love
  • Photos

Meta

  • Register
  • Log in

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • WindyGallery's Weblog
    • Already have a WordPress.com account? Log in now.
    • WindyGallery's Weblog
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar