Saturday, December 10, 2011
Friday, November 25, 2011
How To Buy Akaash Online?
Actually we can't buy akaash online yet before december. so if you want to buy akaash we need to book first from www.aakashdatawind.com Here We can find Book Now Button and we need to submit our basic information like email,phone no. etc. After some time they will contact us. You can also book from mobile '+1800 180 2180' toll free no.
Logic Cafe Team
www.logiccafe.in
Logic Cafe Team
www.logiccafe.in
Monday, October 31, 2011
Top 10 Programing language
1. Java
2. Asp.net
3.Php
4.Java Script
5. C#
6. C++
7.rubby
8.python
9.j query
10. ajax
2. Asp.net
3.Php
4.Java Script
5. C#
6. C++
7.rubby
8.python
9.j query
10. ajax
Saturday, October 1, 2011
get anyone information with facebook id
Here is a exp. of code to get information of facebook user with his/her id
Ex. i want to know information of user id 100002970434670
User ID100002970434670 is ?.
User ID 100002970434670 is ?.
----------------------
output:
User ID 100002970434670 is kapi Area
Ex. i want to know information of user id 100002970434670
User ID100002970434670 is ?.
User ID 100002970434670 is ?.
----------------------
output:
User ID 100002970434670 is kapi Area
Monday, August 8, 2011
Make Download File In Blogger Blog
Hii friends.. i found very good way to post With download files in our blog. i had lot of search regarding that but finally i did it..
.
this is link where u can upload ur files and this site generate a link for ur blog where you can set given link in ur post
http://uploading.com/
.
this is link where u can upload ur files and this site generate a link for ur blog where you can set given link in ur post
http://uploading.com/
Sunday, August 7, 2011
Get FaceBook Friend And Send Message by Selection.
Hello friends. some of last few days i did lot of search regarding facebook API. My requirement was that i need to get All facebook friend list of login user and send invitation of my web site to selected users. so finally i made a little tutorial to full fill my requirement..
Please download this project and set "FbFriend to as stratup Page"
Download Link:
FBFriends.zip - 7.2 KB
Choice Is Yours
Please download this project and set "FbFriend to as stratup Page"
Download Link:
FBFriends.zip - 7.2 KB
Choice Is Yours
Sunday, July 31, 2011
Face Book Login Connect and Save User information into database
Step 1
--------------------------------------------------------------------------------------------------------------------
First Create Your App ID on Following Link
http://developers.facebook.com/setup/
Site Name: Test Website
Site URL: http://localhost:8353/LSATWebsite/( for Local Test set your own local host like this is mine)
Site URL: www.mywebsite.com (for live Test)
click on create app
-----------------------------------------------------------------------------------------------------------------------
Step 2
// copy this code before Head tag
Step 3
// Set this login div where you want set your facebook login button
--------------------------------------------------------------------------------------------------------------------
First Create Your App ID on Following Link
http://developers.facebook.com/setup/
Site Name: Test Website
Site URL: http://localhost:8353/LSATWebsite/( for Local Test set your own local host like this is mine)
Site URL: www.mywebsite.com (for live Test)
click on create app
-----------------------------------------------------------------------------------------------------------------------
Step 2
// copy this code before Head tag
Step 3
// Set this login div where you want set your facebook login button
------------------------------------------------------------------------------------------------------------------------
Step 4
Index Page Code
page load()
{
FacebookLogin();
}
#region FacebookLogin
private void FacebookLogin()
{
if (Request.QueryString["loginby"] != null)
{
if (Convert.ToString(Request.QueryString["loginby"]) == "fb")
{
String AppID = "fbs_247350651959904";
if (Request.Cookies[AppID] != null)
{
try
{
Session["UserID"] = null;
string token = Request.Cookies[AppID].Values[0].ToString();
string userid = Request.Cookies[AppID].Values[5].ToString();
int charCount = (userid.Length - 1);
string finalUser = userid.Substring(0, charCount);
string fbUser = "https://graph.facebook.com/" + finalUser + "?access_token=" + token;
//Parse the JSON that is returned:
JObject u = JObject.Parse(Convert.ToString(requestFBData(fbUser)));
string userName = "";
if (u["link"].ToString().Contains("profile.php?id="))
userName = u["link"].ToString().Replace("http://www.facebook.com/profile.php?id=", "").Replace("\"", "");
else
userName = u["link"].ToString().Replace("http://www.facebook.com/", "").Replace("\"", "");
// Now get their email address and first name (we will need it later).
UserClass objUser = new UserClass();
//objUser.Email = u["email"].ToString().Replace("\"", "");
// objUser.password = Membership.GeneratePassword(10, 6);
objUser.FacebookToken = token;
objUser.FaceBookId = userName;
objUser.Name = u["first_name"].ToString().Replace("\"", "");
//objUser.lstname = u["last_name"].ToString().Replace("\"", "");
objUser.OutputMessage = "http://graph.facebook.com/" + finalUser + "/picture";
//string userFacebook = u["link"].ToString().Replace("\"", "");
Session["UserID"] = objUser.LoginByFacebookToken();
if (Session["UserID"] != null && Session["UserID"] != "")
{
objUser.UserID = Convert.ToInt32(Session["UserID"]);
Session["FirstName"] = "Hi, " + objUser.Get_Username() + " Good Luck With Your Lsat.";
Session["FbLogin"] = "True";
}
FormsAuthentication.SetAuthCookie(userName, true);
Response.Redirect("index.aspx", true);
}
catch { Exception e; }
}
}
}
}
object requestFBData(string action)
{
WebRequest req = HttpWebRequest.Create(action);
WebResponse resp = req.GetResponse();
StreamReader sr = new StreamReader(resp.GetResponseStream());
string results = sr.ReadToEnd();
sr.Close();
return results;
}
#endregion
// i am using user class to save data on my databse
------------------------------------------------------------------------------------------------------------------------
Step 6
Log Out Page Code
page load ()
{
LogOut();
}
private void LogOut()
{
if (Request.QueryString["logout"] != null)
{
if (Convert.ToString(Request.QueryString["logout"]) == "fb")
{
String AppID = "fbs_247350651959904";
if (Request.Cookies[AppID] == null)
{
Session.Abandon();
Response.Redirect("index.aspx");
}
}
}
}
Subscribe to:
Posts (Atom)