Spielplatz für Entwickler
Spielplatz für Entwickler Alles über Web 2.0 und Webdesign, Ajax, XHTML, Javascript, CSS und PHP/MySQL.

Artikel-Schlagworte: „facebook“

Facebooks neues JavaScript SDK: Cookies verifizieren

24. Februar 2010 in Php / Mysql | 1 Kommentar »

<?php

// by Patrick Puecher

$apikey = ''; // Your API key
$secret = ''; // Your application's secret

$cookie = $_COOKIE['fbs_' . $apikey];
$cookie = trim($cookie, '\"');
parse_str($cookie, $parsed);

if($parsed['expires'] > time() || $parsed['expires'] == 0)
{
  $cookie = preg_replace('/&sig=[^&]+/i', '', $cookie);
  $cookie = preg_replace('/&+/i', '', $cookie);
  $cookie.= $secret;

  if(md5($cookie) == $parsed['sig'])
  {
    // verified
  }
}

?>

Facebooks JavaScript Client Library in die Leinwandseite (Canvas) einbinden

9. Februar 2010 in Javascript | Keine Kommentare »

Bisher fand ich leider keine Möglichkeit, Facebook´s bereitgestellte JavaScript API in die Canvas-Seite zu integrieren. Da komme ich wohl nicht drum herum, mich für die IFrame-Variante zu entscheiden.

Hey,

At the moment, there are some applications that are using the JS API within iframe canvas pages. It won’t work within FBML canvas page though.

Here’s a blog post (and comments) that talk about some of the aspects of how it works, and where we’re going with it:

http://www.ccheever.com/blog/?p=10#comments

Gefunden auf: http://forum.developers.facebook.com/viewtopic.php?id=22374 (02.10.2008)

RSS Feed