Click here to Skip to main content
15,917,652 members

Comments by CHITRAKSH 2010 (Top 13 by date)

CHITRAKSH 2010 9-Jul-15 23:19pm View    
i want to do it using ajax, further i want that both textbox and image file can be uploaded by ajax.do you have any suggestion?
CHITRAKSH 2010 25-Jun-15 1:27am View    
i understand that pdf is not good choice, so kindly tell me about online reading using HTML/XML.
CHITRAKSH 2010 25-Jun-15 1:25am View    
ok sir
please guide me about ".. to provide HTML or XML for reading and want to implement some featured facilitating reading....."
CHITRAKSH 2010 24-Jun-15 1:58am View    
no i want customization in my online reading like, disable/enable download etc.
please guide .
CHITRAKSH 2010 17-Feb-14 3:09am View    
Sir
Please find below my code

include_once "facebook-php-sdk-master/src/facebook.php";
//initializing
$config = array(
'appId' => 'myappid',
'secret' => 'myaddsecret',
'cookie' => true
);

$facebook = new Facebook($config);
//getting user id
$uid = $facebook->getUser();
if($uid)
{
echo $uid;
$params = array( 'next' => $currentUrl );
$logoutUrl=$facebook->getLogoutUrl($params); // $params is optional
echo "Logout from FB";
//$facebook->destroySession();
try
{
$user_profile = $facebook->api('/me','GET');
echo "Name: " . $user_profile['name'];
}
catch(FacebookApiException $e)
{
echo "ERROR";
}
}
else
{
//if user is not logged in then get the login user
$params = array(
'scope' => 'read_stream, friends_likes, email',
'redirect_uri' => 'http://www.comettea.com',
'display' => 'popup',
);

$loginUrl = $facebook->getLoginUrl($params);
echo $loginUrl."<br />";
echo " Login in FB ";
}