Jump to content

Facebook PHP SDK -No app_data after user app installation


dflow

Recommended Posts

i'm having an issue with passing app_data after a new app install redirect

using the `Facebook PHP SDK`

 

    $loginUrl = $facebook->getLoginUrl( array( 'scope' => 'email,manage_pages', 'redirect_uri' => $fbconfig['appPageUrl'], ) );
    
    $decodedSignedRequest = parse_signed_request($_REQUEST['signed_request'], $fbconfig['secret']); 
    
     if (isset($decodedSignedRequest['app_data'])){
    		 echo $app_data=$decodedSignedRequest['app_data'];
    		 header("Location: success.php?id=$app_data"); die();}

 

 

 

if the app is installed i get app_data from the signed_request without a problem

 

any suggestions?

 

thanks

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.