#363 Facebook Open Graph pro
This episode builds on last week's episodes and shows how to integrate Facebook further through the Open Graph protocol. You will also learn how to tunnel your local server and move Facebook communication into a background process.
- Download:
- source code
- mp4
- m4v
- webm
- ogv
Thanks for the great episode as usual!
By the way, if we use passenger standalone instead of the default rails server, it will run the app in a multi-threaded environment. That can be a quick way to test something in development without the need to rely on background tasks.
@rbates: one snag that I usually run into with facebook is exchanging access tokens when they expire. How do you prefer to deal with this?
In #360 Ryan used this:
I can't remember the details but I was having trouble with localtunnel so I wrote this little one liner that has been working perfectly for me for a while.
I have test callbacks from a few services configured use this url for development debugging.
In case anyone else can use this.
Is there a reason for not passing the whole user to the delayed method? i.e.
User.share_review(current_user, ...)
that way it wouldn't be neccasary to callUser.find
again with the delayed method?better still, how about making
share_review
an instance method? e.g.,current_user.share_review(movie)
(also it should take a movie object, not a movie URL..)I think it may be that it's more efficient to pass simple types to delayed methods as they get serialized and stored in the jobs table?
should be
Great episode. One gold tip for me was localtunnel. Awesome and very handy!
I used code as described in this episode:
It works fine in sandbox mode, however when trying to submit for approval I get the following:
Had anyone else experienced anything like that?
Hi Ryan, in the ASCIIcast "rake jobs:works" should be "rake jobs:work" ?
Thanks for this great episode!
You're absolutely right, I've corrected it :)
Just a head's up, not sure if it's a change, however unsubmitted Open Graph action types (i.e. review) can only be tested with an app Administrator or Developers account. Test accounts won't work. I was getting this error:
Thanks a lot. I wasted a couple of hours doing all sorts of things around this.
Thank you so much! I was stuck at this point and could not figure out what should I do. Thx so much!!
I am having the same error, even when I test with an Administrator account. :-(
Any idea?
I don't whether this is a problem of my own, just in case:
The content of og:type meta tag should be video.movie, instead of cinematron:movie.
I don't know the reason, the latter one just doesn't work for me.
Check and get complete details to dianabol in Canada
Thanks for this