Simple login with facebook ->first download required file from below link https://www.dropbox.com/s/1k4gg6lwdvs3vxy/fb.zip?dl=0 ->create fb button <a href="<?php echo base_url('fb/fbconfig.php');?>"><button class="btn btn-primary" type="button">Login With Facebook</button></a> in FB/ fb config file set App key and App secret ********* how to get app key and App secret go to https://developers.facebook.com/quickstarts/?platform=web From my app option select add new App select platform for which you want to add your App you get your api key and secret key as below from setting menu please set your app domain here i ma using for localhost From App detail optin set your Application detail ****** you can do what you want after checking successful login if(isse...
Posts
Showing posts from October, 2015
- Get link
- X
- Other Apps
Upload Image using web service in php -> First check for all valid parameter which you are passing Here is my code for checking valid request if(isset($_REQUEST["uploadMediaRequest"]) && trim($_REQUEST["uploadMediaRequest"]) != '') -> i am passing 3 parameters 1) media name 2) type 3) userId or name $Path= your path + your media name like $mediaPath= "upload/chat/".$username."/".$mediaType."/"; if (!file_exists($mediaPath)) { $oldmask = umask(0); ...