0

I want to let customer invite friends inside my website customer area.

After customer login to my website customer area, all the personal session datas created as usual.

Then customer click to facebook connect, grant permission and being shown a list of friends that they can tick to invite.

Once the invitation done and back to the same page again, all my website session datas gone. Only left the facebook sessions (access_token, base_domain, expires, secret, session_key, sig)

I wonder how come...

I want back all my existing session datas in order to perform other activities.

Any way to get back?

session_start();

if($_SESSION["username"]=="") {

}

$facebook = new Facebook(array(

    'appId'  => $fbconfig['appid'],

    'secret' => $fbconfig['secret'],

    'cookie' => true,
));

$sessionfb = $facebook->getSession();

//this facebook getsession is using the latest facebook.php provided as part of the sdk

$loginUrl = $facebook->getLoginUrl(

    array(
      'canvas'    => 1,

            'fbconnect' => 0,

            'req_perms' => 'email,publish_stream,status_update,user_birthday' )
);

$fbme = null;

print_r($_SESSION);

<fb:serverFbml style="width: 500px;">
    <script type="text/fbml">
      <fb:fbml>
          <fb:request-form
                    action="<?=$fbconfig['baseUrl']?>/index.php"
                    target="_top"
                    method="POST"
                    invite="true"
                    type="testing"
                    content="testing <fb:req-choice url='<?=$fbconfig['appBaseUrl']?>' label='Accept' />"
                    >

                    <fb:multi-friend-selector
                    showborder="false"
                    actiontext="testing ">
        </fb:request-form>
      </fb:fbml>
    </script>
</fb:serverFbml>  
i need help
  • 2,386
  • 10
  • 54
  • 72

1 Answers1

0

As for as I know in login url when you use canvas=1, fbconnect=0 then it means that you have an facebook application within facebook. you are specifying canvas=1 and fbconnect=0. If you are embedding facebook in your site then you must do the contrast. fbconnect=0 means you are not embedding facebook in your site.

Awais Qarni
  • 17,492
  • 24
  • 75
  • 137
  • you must do the contrast. fbconnect=0 means you are not embedding facebook in your site ?? – i need help Jan 24 '11 at 07:26
  • my dear there are two ways to work with facebook. One is embed facebook in your site and second build an face book application. when you specifiy fbconnect=0 it means you are building a facebook application. – Awais Qarni Jan 24 '11 at 07:37