Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,443 members, 7,816,020 topics. Date: Thursday, 02 May 2024 at 11:37 PM

Working With Facebook As A Query Language - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Working With Facebook As A Query Language (879 Views)

How Do I Search Multiple Tables In A Database For A Query? / Urgent Help On Sparql Query Ontology / Php/mysql Help:how To Run Sql Query From A Link (2) (3) (4)

(1) (Reply) (Go Down)

Working With Facebook As A Query Language by dammie12: 5:32pm On Jul 26, 2012
Hello house, i'm developing a website that i need to embed some facebook comments in the homepage. As part of the client's req, he wanta the latest posts on the homepage. i know i have to use FQL but i have not gotten it to work. I know facebook has lots of security but has someone done something similar to this using FQL or FBML?
Re: Working With Facebook As A Query Language by delomos(m): 6:03pm On Jul 26, 2012
This is where you will want to be: https://developers.facebook.com/docs/sdks/
Re: Working With Facebook As A Query Language by dammie12: 6:17pm On Jul 26, 2012
i've been to the developer's page but little or no clue from there. Have you done something of such before. If you have, pls can you send ur email so that we can talk better. Thanks
Re: Working With Facebook As A Query Language by delomos(m): 6:23pm On Jul 26, 2012
Give more detail on the kind of website you're build and what language your doing so in -- PHP a la Wordpress, Joomla, CodeIgniter,; or Python a la Django, etc.
Re: Working With Facebook As A Query Language by dammie12: 6:33pm On Jul 26, 2012
all i want to do is display the first few post of the owner's facebook account on the home page. I've done the twitter part but this gives more issue compared to twitter. I use php for the development.
Re: Working With Facebook As A Query Language by delomos(m): 7:05pm On Jul 26, 2012
Oh in that case, if you know the person's facebook ID/username, you could just use the same pattern like you do for twitter's REST,the API https://graph.facebook.com/<username>/<what you need>?access_token?xxxxx (just be sure you have the token). So if you want to get info about my own timelime, you do:

https://graph.facebook.com/dele.o/statuses?access_token=AAAAAAITEghMBACvVBB7elnD6rPzVVT4aGDiDfmVPrVkgX2AQRdckRAJiFOM8qfeXD8kGusNehLUAWNOKXdX6ChOeYvNVrmJ3qE4YCgZDZD (this gives you a JSON of all my info),
or to get post my notes
https://graph.facebook.com/dele.o/notes?access_token=AAAAAAITEghMBACvVBB7elnD6rPzVVT4aGDiDfmVPrVkgX2AQRdckRAJiFOM8qfeXD8kGusNehLUAWNOKXdX6ChOeYvNVrmJ3qE4YCgZDZD
the documentation is here: http://developers.facebook.com/docs/reference/api/

Then of course, you json_decode() and loop.

(1) (Reply)

Power Is The Real Reason Why You Should Learn To Program / Check My Tv App That i Develop Using My Android Phone / Heated/partially Funny Argument On Techcabal's Radar

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.