Hi all

i am really battling to implement this module properly - with Facebook's PHP SDK having virtually zero documentation, i'm really battling to understand. Quite simply, i've installed the module and it seems to be working fine, but if i want to use PHP now to call, for example, the person's name from the facebook data, how on earth do i do that? I've tried to access the array that is mentioned in my 'Facebook Devel Info' block - for example, it says that there is an array under:

fb->getSignedRequest() =
fb->api(000-i'mremovingthisnumber-000)

Array
(
    [id] => 000-i'mremovingthisnumber-000
    [name] => Ashley Glover
    [first_name] => Ashley
    [last_name] => Glover

But i can't find any way for me to use PHP to simply print this data to a page. So i'd like someone to please help me with how on earth i get it to do something like my pseudo-code below:

  <?php 
      $facebookname = fb->api[name];
      print $facebookname;
  ?>

What am i missing? It doesn't seem like there's a PHP variable with this array in it - so how do i get to this info?

Please help an exceptionally stupid feeling developer!

Ash

Comments

onepartscissors’s picture

Status: Active » Closed (won't fix)