#363 Facebook Open Graph pro
Jul 02, 2012 | 11 minutes | Tools, Plugins, Deployment, Background Jobs
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.
- source codeProject Files in Zip (174 KB)
- mp4Full Size H.264 Video (30.1 MB)
- m4vSmaller H.264 Video (15.4 MB)
- webmFull Size VP8 Video (16.4 MB)
- ogvFull Size Theora Video (37.8 MB)
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 call
User.findagain with the delayed method?
better still, how about making
share_reviewan 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?
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. :-(
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