achrafff
Messages postés9Date d'inscriptionmardi 25 novembre 2008StatutMembreDernière intervention 3 février 2010
-
27 janv. 2009 à 14:59
achrafff
Messages postés9Date d'inscriptionmardi 25 novembre 2008StatutMembreDernière intervention 3 février 2010
-
27 janv. 2009 à 15:19
Bonjour,j'ai ce code je veux le développer,
<?php
// Copyright 2007 Facebook Corp. All Rights Reserved.
//
// Application: vtigerext
// File: 'index.php'
// This is a sample skeleton for your application.
//
// Greet the currently logged-in user!
echo "Hello, <fb:name uid="$user_id" useyou="false" />!
";
// Print out at most 25 of the logged-in user's friends,
// using the friends.get API methodecho "Friends:";
$friends = $facebook->api_client->friends_get();
$friends = array_slice($friends, 0, 35);
foreach ($friends as $friend) {
echo "
$friend";
}
echo "
); // insert the actual arguments for your request in place of these example args
$request_str = '';
foreach ($args as $key => $value)
{
$request_str .= $key . '=' . $value;
}
$sig = $request_str . $secret;
$sig = md5($sig);