Yii Framework Forum: Facebook Extension for Yii - Yii Framework Forum

Jump to content

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

Facebook Extension for Yii Rate Topic: -----

#1 User is offline   Emily Dickinson 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 201
  • Joined: 17-September 10
  • Location:Albuquerque, NM

Posted 17 October 2010 - 12:59 PM

I'm building a Facebook app using Yii, but I'm running into serious problems handling authentication, especially with MSIE 8.0. In MSIE, the session seems to have the authentication data it needs--but only about half of the time.

Questions:

1. Is there a Facebook extension to Yii?

2. If not, can anyone share any kind of wrapper class, which wraps around Facebook's javascript
client SDK, and makes authentication seamless?

Examples, of course, would be very appreciated.

TIA!
Emily
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,346
  • Joined: 17-January 09
  • Location:Russia

Posted 17 October 2010 - 01:30 PM

http://www.yiiframew...cebook-connect/
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#3 User is offline   Emily Dickinson 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 201
  • Joined: 17-September 10
  • Location:Albuquerque, NM

Posted 17 October 2010 - 02:15 PM

Hi Sam and thanks for the reply!

I saw the forum article you refer to, but it seems way over the top for my needs. I.e., it uses Yii's built-in authentication to authenticate the user. It seems to me there must be a far simpler method. I want to simply grab the cookie that Facebook sets when someone is logged in, use that to authenticate; I don't want to write my own login to facebook.

Can anyone point me to a simple, working example of a Yii application which:

1. Uses Facebooks' Javascript SDK
2. Uses the Graph API PHP module provided by Facebook

I understand if the solution has to create a wrapper class to wrap around the Facebook class provided in Facebook's PHP SDK, but I'd prefer not to do much more than that. Just a simple way to access the session cookie set by Facebook, and then use Facebook's API.

Thanks again!
Emily
0

#4 User is offline   Emily Dickinson 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 201
  • Joined: 17-September 10
  • Location:Albuquerque, NM

Posted 17 October 2010 - 02:28 PM

p.s. Willing to pay for a simple example which supports Facebook Oauth authentication through all of the major browsers--Firefox, MSIE, Chrome, Safari, etc.!
0

#5 User is offline   Emily Dickinson 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 201
  • Joined: 17-September 10
  • Location:Albuquerque, NM

Posted 18 October 2010 - 02:16 PM

I posted a simple solution to this issue here:

http://www.yiiframew...0871#entry60871
0

#6 User is offline   StErMi 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 259
  • Joined: 30-March 09

Posted 18 October 2010 - 05:26 PM

Long time ago I developed an entile application on facebook using Yii, if I have time I will share the code :)
0

#7 User is offline   bluyell 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 222
  • Joined: 28-October 11

Posted 29 December 2012 - 07:45 PM

https://github.com/c.../crugeconnector as an alternative, it allows Google and Facebook, and have a tester to simulate both in a localhost.
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