facebooker (not 2) compat with oauth 2.0

16 views
Skip to first unread message

mikeymicrophone

unread,
Sep 18, 2011, 9:02:23 PM9/18/11
to facebooker
Facebook is deprecating some of its authentication apis.

As of October 1st, Oauth 2.0 is required.

According to my tests, this authentication method returns a response
object with a different structure: response.session is no longer
there.

I suspect that this is causing problems with the Facebooker::Session
wrapper, but I haven't conclusively researched this yet.

I'm just wondering if anyone using the old facebooker is aware of
whether it is easily patched to use OAuth 2.0, or not.

-Mike

mikeymicrophone

unread,
Sep 18, 2011, 9:53:56 PM9/18/11
to facebooker

Mike Mangino

unread,
Sep 19, 2011, 10:53:36 AM9/19/11
to faceb...@googlegroups.com
If somebody puts together a pull request, I will pull this in.

Mike

On Sep 18, 2011, at 9:53 PM, mikeymicrophone wrote:

> I found something: http://twitter.com/#!/nicolas_/status/17271390785
>
> --
> You received this message because you are subscribed to the Google Groups "facebooker" group.
> To post to this group, send email to faceb...@googlegroups.com.
> To unsubscribe from this group, send email to facebooker+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/facebooker?hl=en.
>

--
Mike Mangino
http://www.elevatedrails.com

sasi kumar

unread,
Sep 19, 2011, 11:05:00 AM9/19/11
to faceb...@googlegroups.com
Hi Mike, 

Thanks for your reply,

But i am using facebooker2 plugin. If you found any solution for facebooker2. Please Let me know.

mikeymicrophone

unread,
Sep 19, 2011, 3:01:27 PM9/19/11
to facebooker
Sasi,

facebooker2 supports OAuth 2.0. All you need to do is add a line to
your facebooker.yml file like so:

oauth2: true

Mike - I will let you know if I get facebooker (not 2) to work with
OAuth 2.0. Thanks!

Also, for facebooker2, this should probably be a default, given this
deprecation timetable:

https://developers.facebook.com/blog/post/525/

On Sep 19, 11:05 am, sasi kumar <sasiw...@gmail.com> wrote:
> Hi Mike,
>
> Thanks for your reply,
>
> But i am using facebooker2 plugin. If you found any solution for
> facebooker2. Please Let me know.
>

mikeymicrophone

unread,
Sep 19, 2011, 3:26:13 PM9/19/11
to facebooker
Sasi,

facebooker2 supports OAuth 2.0. All you need to do is add a line to
your facebooker.yml file like so:

oauth2: true

Mike - I will let you know if I get facebooker (not 2) to work with
OAuth 2.0. Thanks!

Also, for facebooker2, this should probably be a default, given this
deprecation timetable:

https://developers.facebook.com/blog/post/525/

On Sep 19, 11:05 am, sasi kumar <sasiw...@gmail.com> wrote:
> Hi Mike,
>
> Thanks for your reply,
>
> But i am using facebooker2 plugin. If you found any solution for
> facebooker2. Please Let me know.
>

Subbu Sastry

unread,
Sep 28, 2011, 11:03:11 AM9/28/11
to facebooker
I am looking for this exact solution. Please let me know if you (or
anyone else) was able to get OAuth2 support patched into the older
gem.

Thanks,
Subbu.

On Sep 19, 2:26 pm, mikeymicrophone <mike.sch...@gmail.com> wrote:
> Sasi,
>
> facebooker2 supportsOAuth2.0.  All you need to do is add a line to
> yourfacebooker.yml file like so:
>
> oauth2: true
>
> Mike - I will let you know if I getfacebooker(not 2) to work withOAuth2.0.  Thanks!
>
> Also, for facebooker2, this should probably be a default, given this
> deprecation timetable:
>
> https://developers.facebook.com/blog/post/525/
>
> On Sep 19, 11:05 am, sasi kumar <sasiw...@gmail.com> wrote:
>
> > Hi Mike,
>
> > Thanks for your reply,
>
> > But i am using facebooker2 plugin. If you found any solution for
> > facebooker2. Please Let me know.
>
> > On Mon, Sep 19, 2011 at 8:23 PM, Mike Mangino <mmang...@elevatedrails.com>wrote:
>
> > > If somebody puts together a pull request, I will pull this in.
>
> > > Mike
>
> > > On Sep 18, 2011, at 9:53 PM, mikeymicrophone wrote:
>
> > > > I found something:http://twitter.com/#!/nicolas_/status/17271390785
>
> > > > --
> > > > You received this message because you are subscribed to the Google Groups
> > > "facebooker" group.
> > > > To post to this group, send email toface...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > >facebooker+...@googlegroups.com.
> > > > For more options, visit this group at
> > >http://groups.google.com/group/facebooker?hl=en.
>
> > > --
> > > Mike Mangino
> > >http://www.elevatedrails.com
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "facebooker" group.
> > > To post to this group, send email toface...@googlegroups.com.

mikeymicrophone

unread,
Sep 29, 2011, 2:08:26 PM9/29/11
to facebooker
Subbu,

I decided to move to facebooker2 rather than patch facebooker(1). The
session object is now called a client, and it no longer contains a
reference to the user object (but the user object has a reference to
the client). The port within my app seems to be going well.

-Mike
Reply all
Reply to author
Forward
0 new messages