Sam Oldak
Recent graduate in engineering and environmental policy
  • Home
  • About
  • News/Blog
  • Portfolio
    • Connecticut Climate Change
    • BuildingCTGreen
    • Carol Freedman Design
    • Regulation UnFettered
    • Wharton Politics and Business Association
    • Eats for a Week
    • The Resume Book
  • Contact

Facebook PHP SDK

Fixing Facebook’s PHP SDK logout

By Sam on June 20, 2011

If you request the “offline_access” permission when using the Facebook PHP SDK (and sometimes even without it), it makes the default logout functionality not work very well.  To fix this, here’s what worked for me: Change your logout url: $logoutUrl = $facebook->getLogoutUrl(array( ‘next’ => ($fbconfig['baseurl'].’logout.php’) )); On your logout.php page, add the following code: setcookie(‘fbs_’.$facebook->getAppId(), [...]

Posted in Blog | Tagged Facebook PHP SDK | 14 Responses

Twitter Updates

  • I love public transportation. #whenyouseeit http://t.co/qxtOlPrG 2 weeks ago
  • Accidentally shut down my own computer instead of the full screen remote desktop. -10 points 3 weeks ago
  • The only reason to buy an iPad: blog.chipx86.com/2012/03/13/wsx… 2 months ago
  • Looking for an apartment in Center City, Philly for 5/1 move-in. 2BR/2BA. W/D and gym appreciated. 2 months ago
  • Sorry, no. You may not watch Fringe with me your first time during the 4th season. 3 months ago

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org

Copyright © 2012 Sam Oldak.

Powered by WordPress, Hybrid, and Structure.