Web Design Forum: Facebook Graph API - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Facebook Graph API It's lovely. Rate Topic: -----

#1 User is online   andyl 

  • White space enthusiast
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,535
  • Joined: 21-January 10
  • Reputation: 210
  • Gender:Male
  • Location:Surrey
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 27 January 2012 - 10:58 AM

So, I'm working on a website that I doubt will interest anyone here so I'll hold off on the details. Basically I want to use Facebook as the login method. Reasons: it's a small site, will likely be preferable to my target audience and I'm too busy to create a secure login+user class.

I've download the Facebook PHP SDK and got that up. I'm using the third example on this page (ie. the PHP example below the illustration).

All works well for logging in. Perfect. But when I logout, I get various errors. The most frequent one being:

Unknown algorithm. Expected HMAC-SHA256

Which in turn causes a Javascript error so the page fails miserably.

I would post my code, but it's literally the example code with my own APP_ID and APP_SECRET details. I'm completely stumped, and have been for a full day now. I can only assume their example doesn't work because it's a cut and paste job that works up till logout.

The other common problem is that after logging out, Facebook still returns the user's details so my app will think we're logged in.

Essentially $facebook->getLogoutUrl() is screwed, at least pour moi.

If anyone could piece together a working version of the example, I would be (almost) eternally grateful.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users