Facebook Query Language Dr.Kwanchai Eurviriyanukul February 2011 RMUTL.

Slides:



Advertisements
Similar presentations
Login to Top Hat Password Log In Need a Top hat Account – sign up here. I forgot my password You must log in first Display error Messages here.
Advertisements

PHP SQL. Connection code:- mysql_connect("server", "username", "password"); Connect to the Database Server with the authorised user and password. Eg $connect.
WordPress from Start to Finish Day 1: Installing and Using WordPress Looking at the WordPress database.
Authentication Simon Cross Partner Engineer facebook.com/sicross An Overview.
OAuth 2.0 By “PJ” (JP on meetup.com) iOS and PHP developer, and occasional lawyer Contact me via:
OULU ADVANCED RESEARCH ON SOFTWARE AND INFORMATION SYSTEMS Teppo Räisänen | Oulu University of Applied Sciences Facebook API Teppo Räisänen
HP Service Manager.
1.  Understanding about How to Working with Server Side Scripting using PHP Framework (CodeIgniter) 2.
Page 1 PHP, HTML, STATE Achmad Arwan, S.Kom. Page 2 PHP ( PHP: Hypertext Preprocessor) A programming language devised by Rasmus Lerdorf in 1994 for building.
Facebook Applications Teppo Räisänen. Facebook Applications Facebook provides many Software Development Kits (SDK’s) – PHP SDK – iOS SDK – Android SDK.
Electrical and Computer Engineering Vitaly Gordievsky Alex Trefonas Scott Richard Matt Beckford Final Project Review.
Facebook Platform: 101 Network Journal Club Meeting Shaomei Wu May 7, 2008.
Hannes Tschofenig MIT CFP Privacy & Security Working Group Feb. 2 nd 2011.
CS160 Discussion Section David Sun. Facebook Application Architecture Information repository Session management GUI Privacy.
Facedroid Facebook for Android. Facebook Application - API key - Secret key - PHP page Facebook Application - API key - Secret key - PHP page Facebook.
Facebook Visualization Update Lourdes Chang. Goals Get familiar with Facebook API Connect *any* user to Facebook Gather friend’s list Gather friend’s.
Social Design with Facebook Lessons from Scribd's Integration Matt Riley
Unit 5 Simple Present, Time Clauses, Used To, and Would.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
PHP1-1 PHP & SQL Xingquan (Hill) Zhu
Social Media Apps Programming Min-Yuh Day, Ph.D. Assistant Professor Department of Information Management Tamkang University
BUILDING A FACEBOOK APP. STEP 1 Create a Developers License. Make sure to take note/record the app id/key.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Mobile Programming Lecture 16 The Facebook API. Agenda The Setup Hello, Facebook User Facebook Permissions Access Token Logging Out Graph API.
PARSING FACEBOOK DATA FOR ANDROID 1. Step by Step  Import Android SDK  Get the hash key  Create a new app  Create a new project in Eclipse 
JavaScript Lecture 6 Rachel A Ober
Social Media Apps Programming Min-Yuh Day, Ph.D. Assistant Professor Department of Information Management Tamkang University
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
Math on the Mind Model y = –2x + 4 with a table of values and a graph.
Internet Search Methods 1.01 Understand Internet search tools and methods.
HTML Form and PHP IST Review of Previous Class HTML table and PHP array Winner is chosen randomly using rand() function.
M1G Introduction to Database Development 5. Doing more with queries.
PHP Form Introduction Getting User Information Text Input.
Sorrento(GT-B7722) USB Downloader User Guide v0.1 Sorrento(GT-B7722) USB Downloader User Guide v0.1
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
 Facebook Integration on iOS Phan Thanh Phat Huynh Thanh Van.
Scanning and Indexing Documents Sean Pitetta. Login to WebXtender From the SMCCD Portal Page Click BANNER In the Banner Page Click WebXtender In the Login.
I Power Higher Computing Software Development Development Languages and Environments.
Using SQL Connecting, Retrieving Data, Executing SQL Commands, … Svetlin Nakov Technical Trainer Software University
Facebook API Kelly Orser. Client Libraries Client libraries will simplify the calls to the platform by reducing the amount of code you have to write.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Database Management System. DBMS A software package that allows users to create, retrieve and modify databases. A database is a collection of related.
Social Media Apps Programming Min-Yuh Day, Ph.D. Assistant Professor Department of Information Management Tamkang University
Social CRM March 7, The Case for Social CRM » On average 31% of people change their address every year New job Moving ISP change Change.
NMD202 Web Scripting Week2. Web site
Maria Gunnarsson SCB Mikael Nordberg SCB PX-Web 2015 December.
Virtual techdays INDIA │ November 2010 Integrating Social Networks with ASP.NET Krishna Chaitanya T │ Future Web Research Lab, SETLabs, Infosys WE.
JQuery form submission CIS 136 Building Mobile Apps 1.
HTML III (Forms) Robin Burke ECT 270. Outline Where we are in this class Web applications HTML Forms Break Forms lab.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
(Part 2). From Part 1 We …  Signed up to be facebook developers Verified our facebook account. Added facebook developer app.  Setup a Heroku facebook.
DBMS and SQL.
HW#9 IOS Clues CSCI571 Spring 2017
JDBC.
Social Networks Integration in Android
Yahoo! Social APIs Sophie Major Nagesh Susarla
Political Web Scraping with Facebook
Newsletters An automatic news recommender system
PHP and MySQL.
DESICION TABLE Decision tables are precise and compact way to model complicated logic. Decision table is useful when input and output data can be.
SQL DATA CONSTRAINTS.
Field Photos
Back end Development CS Programming Languages for Web Applications
eSeries Entities By Julie Ladner
Back end Development CS Programming Languages for Web Applications
Finding the Missing Coordinate
Presentation transcript:

Facebook Query Language Dr.Kwanchai Eurviriyanukul February 2011 RMUTL

Facebook Query Language Overview Setup Example-Query Yourself Example-Query Your friends

Graph API The Graph API is the core of Facebook Platform, enabling you to read and write data to Facebook. people, photos, events People: re re

Facebook Query Language Query the data exposed by the Graph API. SELECT [fields] FROM [table] WHERE [conditions] the FQL FROM clause can contain only a single table. Use the IN keyword in SELECT or WHERE clauses to do subqueries, Can query only indexable attributes from tables. Support simple math, basic boolean operators, AND or NOT logical operators, and ORDER BY and LIMIT clauses.

First query 1.SELECT name FROM user WHERE uid =

Examples 1.SELECT name FROM user WHERE uid =

Test your query ce/rest/fql.query ce/rest/fql.query

PHP programming 1. Get your Facebook API key.

Get your Facebook API key.

Test your Facebook API key. With exmple-1

With exmple-1

PHP programming 1. Get your Facebook API key. App Name: fql App URL: 53/fql/ App ID: App Secret: fb9efedbb146aadf3eea879903b8b7a7

Ex-2

PHP SDK

PHP SDK

PHP SDK: Run with localhost

Modify facebook.php 1. public static $CURL_OPTS = array( 2. CURLOPT_CONNECTTIMEOUT => 10, 3. CURLOPT_RETURNTRANSFER => true, 4. CURLOPT_TIMEOUT => 60, 5. CURLOPT_USERAGENT => 'facebook-php- 2.0', 6. CURLOPT_SSL_VERIFYPEER => false, 7. CURLOPT_SSL_VERIFYHOST => 2, 8. );

PHP SDK: Test Again

PHP SDK: Press Login button

PHP SDK: PHP 6 issue parse_str(trim( //get_magic_quotes_gpc() 0 ? stripslashes($_COOKIE[$cooki eName])

PHP SDK

Ex-2 select yourself

What is this? SELECT first_name, last_name,birthday FROM user WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

What is this? SELECT first_name, last_name,birthday FROM user WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

What is this? SELECT first_name, last_name,birthday FROM user WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

What is this? SELECT first_name, last_name,birthday FROM user WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

What is this? => Don’t forget to login SELECT first_name, last_name,birthday FROM user WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

Query Friends SELECT first_name, last_name,birthday FROM user WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

Query Friends: What is missing SELECT first_name, last_name,birthday FROM user WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

Query Friends: What is missing: Birth Day We need permission WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

Query Friends: What is missing: Birth Day We need permission WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

Query Friends: Birth Day We need permission WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

Query Friends: Birth Day We need permission WHERE uid IN ( SELECT uid1 FROM friend WHERE uid2= )

The End List the uid, status_id and the corresponding status massage of specific user within last week.

Ex3.php