Al-Forums.Com ™ - Discussions. Forum Virtual Shqiptar,
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Al-Forums.Com ™ - Discussions. Forum Virtual Shqiptar,

wWw.Al-Forums.Com ™ - Discussions. Forum Virtual Shqiptar, Vendi i duhur pėr tė gjithė shqiptarėt anembanė. Diskutime tė ndryshme rreth shoqerisė dhe tema tė tjera.
 
ChatForumKėrkoLatest imagesRegjistrohuidentifikimiGallery mIRC ScriptsAlbania Chat MOTI  Filma ShqiptarTop Albania Radio

Chat Shqip - Bisedo Shqip - chat shqip , albania chat , chato ... | Albania Chat Mibbit - Webchat - Java IRC - Online Chatt

 

 Forumi Virtual

Shko poshtė 
AutoriMesazh
YouGoDe
WebMaster
WebMaster
YouGoDe


Numri i postimeve : 2345
Registration date : 06/08/2008
Age : 43
Location : YouGoDe.Org

Forumi Virtual Empty
MesazhTitulli: Forumi Virtual   Forumi Virtual Empty04.06.10 23:06

// Awesome Facebook Application
//
// Name: Forumi Virtual
//

require_once 'facebook-php-sdk/src/facebook.php';

// Create our Application instance.
$facebook = new Facebook(array(
'appId' => '132246690125450',
'secret' => 'ef681805488c7c4aacb89edd187d85a8',
'cookie' => true,
));
Mbrapsht nė krye Shko poshtė
http://wWw.yougode.Org
YouGoDe
WebMaster
WebMaster
YouGoDe


Numri i postimeve : 2345
Registration date : 06/08/2008
Age : 43
Location : YouGoDe.Org

Forumi Virtual Empty
MesazhTitulli: Re: Forumi Virtual   Forumi Virtual Empty04.06.10 23:10


require '../src/facebook.php';

// Create our Application instance.
$facebook = new Facebook(array(
'appId' => '254752073152',
'secret' => '904270b68a2cc3d54485323652da4d14',
'cookie' => true,
));

// We may or may not have this data based on a $_GET or $_COOKIE based session.
//
// If we get a session here, it means we found a correctly signed session using
// the Application Secret only Facebook and the Application know. We dont know
// if it is still valid until we make an API call using the session. A session
// can become invalid if it has already expired (should not be getting the
// session back in this case) or if the user logged out of Facebook.
$session = $facebook->getSession();

$me = null;
// Session based API call.
if ($session) {
try {
$uid = $facebook->getUser();
$me = $facebook->api('/me');
} catch (FacebookApiException $e) {
error_log($e);
}
}

// login or logout url will be needed depending on current user state.
if ($me) {
$logoutUrl = $facebook->getLogoutUrl();
} else {
$loginUrl = $facebook->getLoginUrl();
}

// This call will always work since we are fetching public data.
$naitik = $facebook->api('/naitik');

?>



php-sdk






window.fbAsyncInit = function() {
FB.init({
appId : 'getAppId(); ?>',
session : , // don't refetch the session when PHP already has it
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});

// whenever the user logs in, we refresh the page
FB.Event.subscribe('auth.login', function() {
window.location.reload();
});
};

(function() {
var e = document.createElement('script');
e.src = document.location.protocol + 'https://connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());



php-sdk









Using Javascript & XFBML:


Without using Javascript & XFBML:






Session





You





Your User Object




You are not Connected.


Naitik





Mbrapsht nė krye Shko poshtė
http://wWw.yougode.Org
 
Forumi Virtual
Mbrapsht nė krye 
Faqja 1 e 1
 Similar topics
-
» Forumi Virtual ne Youtube
» Hellow The Best My Firends Virtual!!
» Virtual Flash Drive 3.30
» Ckemi Forumi Dhe Forumista !!
» Forumi MireSeVini Dje... Sot dhe Neser....

Drejtat e ktij Forumit:Ju nuk mund ti pėrgjigjeni temave tė kėtij forumi
Al-Forums.Com ™ - Discussions. Forum Virtual Shqiptar, :: Arkiva e Forumit :: Arkiva-
Kėrce tek:  


Copyright Al-Forums.Com ™ © 2011 |yougodec.com
Free forum | ©phpBB | Forum mbėshtetės | Report an abuse | Latest discussions