Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to begin to use the facebook API

i searched for this and i could find it and begin my first program using it

i created an application on facebook and make a windows application program that access this application and get data about me(the owner of the application)

but this is not what i want

i want to call the facebook api at login page and send here an e-mail and password and check if the login data right and login or the user exist but the password is wrong or the username is not exist

and i want to know how can i access the details of a user if i can login with his username and password
Posted

You can use facebook connect to allow login using facebook.

see the following KB articles:

Getting Started with Facebook Desktop (Client) Applications, C#, WPF / XAML and JSON[^]

Developing Facebook Connect Application using ASP.NET[^]
 
Share this answer
 
Comments
amertarekt 2-Jan-12 4:21am    
for the second i want to for c# windows application or WPF not for asp

i have just read the first article before you sent it but at first the code didnot work with me i have an error, this error appear when the login page appear and text is written " you can close this page now"

can you send me a sample way to make what i want?
PHP
/** 
 * @package Check if user exist in twitter
 * @copyright Eduardo Hernandez Arenas (eduardorha@gmail.com)
 * @version 1.0
**/
ini_set('display_errors','Off');
$account = $_GET['user'];

set_time_limit(0);
/*GET CONTENT BY FACEBOOK GRAPH*/
$search = json_decode(file_get_contents("https://graph.facebook.com/{$account}"));

if($search->id)
{
	echo "yes";
}
else 
{
	echo "no";		
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900