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 | 8 Responses

Twitter Updates

  • Sorry, no. You may not watch Fringe with me your first time during the 4th season. 5 days ago
  • Just signed up for @SugarSync to replace Mozy. Use my shameless self-promotion to finally backup your own computer! https://t.co/sDkE7aLn 1 week ago
  • V-day in the city! http://t.co/cYbCr3Rj 1 week ago
  • Sugar May Be Bad, But Is the Alternative Worse? | Wired Science | http://t.co/6Yeh9KkZ http://t.co/rBg2RURR 2 weeks ago
  • Who are these people get 6" subs at Subway? It's $5 footlongs all month! 2 weeks ago

Meta

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

Copyright © 2012 Sam Oldak.

Powered by WordPress, Hybrid, and Structure.