SlideShare une entreprise Scribd logo
1  sur  11
FacebookQueryLanguage

     FQLで無限の可能性を




                   Facebook
FQLって?

• FacebookQueryLanguageの略
• Facebookが提供しているAPIの一種
• Facebook内の膨大なデータにSQLライクにアクセスする
  ことができる




                        Facebook
GraphAPIとの違い

• FQLとGraphAPIの違いは、柔軟性
• GraphAPIは決められたフォーマットでしか値を返してく
  れない
• FQLはこちら側からフォーマットを自由に指定できる




                       Facebook
GraphAPIの場合




              Facebook
FQLの場合




         Facebook
URLを見てみる
https://graph.facebook.com/fql?q=SELECT
uid, name, sex, birthday_date FROM user WHERE uid IN (SELECT
uid2 FROM friend WHERE uid1 = me())




                                            Facebook
URLを見てみる
https://graph.facebook.com/fql?q=SELECT
uid, name, sex, birthday_date FROM user WHERE uid IN (SELECT
uid2 FROM friend WHERE uid1 = me())




Userというテーブルから、uidとnameと(ry



                                            Facebook
URLを見てみる
https://graph.facebook.com/fql?q=SELECT
uid, name, sex, birthday_date FROM user WHERE uid IN (SELECT
uid2 FROM friend WHERE uid1 = me())




Userというテーブルから、uidとnameと(ry

複雑なんだよ(                             ゚Д゚)ゴルァ!!
                                            Facebook
総評

• 柔軟に好きなデータにアクセスできるため、要所で使う
  のが適している
• いろんな情報を一度にとってこようとすると、どんどん
  複雑になってしまう
• 要はバランスが大事
• 一度にいろんなデータを取得することができるのでAPI
  アクセス回数を減らすことができるのが最大の恩恵




                    Facebook
膨大なデータの宝庫
•   album            •   friendlist          •   page_fan
•   application      •   friendlist_member   •   permissions
•   apprequest       •   group               •   permissions_info
•   checkin          •   group_member        •   photo
•   comment          •   insights            •   photo_tag
•   comments_info    •   like                •   place
•   connection       •   link                •   privacy
•   cookies          •   link_stat           •   privacy_setting
•   developer        •   mailbox_folder      •   profile
•   domain           •   message             •   question
•   domain_admin     •   note                •   question_option
•   event            •   notification        •   question_option_votes
•   event_member     •   object_url          •   review
•   family           •   page                •   standard_friend_info
•   friend           •   page_admin          •   standard_user_info
•   friend_request   •   page_blocked_user   •   andmore…


                                                     Facebook
ご静聴ありがとうございました。




            Facebook

Contenu connexe

En vedette

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

FacebookQueryLanguage