Mat wrote:
> Hi I've got a couple of interesting problems with integrating symphony and
> facebook.com currently, and wondered if anyone had any ideas about how to
> circumvent these.
> 
> The first on I'm certain is related to POST validation.

I'm writing all my own facebook intergration stuff too - the 2 plugins
in the SVN repos are both a bit naff.

I've so far created a few classes:

sfFacebookAuthFilter.class.php
  - a filter that looks at the facebook request
    and logs a user in if required
sfFacebookRequest.class.php
  - extends sfWebRequest, and provides a methdo
    getFacebook() to get the facebook API thing
sfFacebookSession.class.php
  - stores a session, and allows the symfony
    sessions to be used across facebook request

I'm considering creating a sfFacebookController to, and overriding the
redirect() method, such that is will redirect correctly (via facebook).

Anyway, I'm not sure if I am going to release these classes or not yet,
if I don't - hopfully this will provide some insipiration.

The reason I'm posting all this, is that I'm just facing he same issue
with you, and what I'm considering doing is in my sfFacebookRequest
initialisation, I might check the POST array for any variables that
don't start with 'fb_', and if there are none, set the request type to
GET, I think it's as simple as that.


-- 
Ian P. Christian ~ http://pookey.co.uk

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to