Veerasundaravel's Ruby on Rails Weblog

January 27, 2011

83 Comments »

  1. Nice article veera, keep continue on rocking on ror tips..:)

    Comment by Madhan ayyasamy — January 27, 2011 @ 5:36 pm

  2. […] Facebook Registration Plugin in Rails « Veerasundaravel's Ruby on … […]

    Pingback by Facebook Registration Plugin in Rails « Veerasundaravel's Ruby on … « 技術者派遣の技術日誌ブログ — January 29, 2011 @ 5:11 pm

  3. Hello,

    Thanks for the article, it was helpful.

    There is something I don’t get in that process. You say :
    It is signed using your application secret which is only known by you and Facebook

    But where do we check the signature against it? The only place where I see specific data is the appId, and it is displayed in clear in the html code.

    Comment by Olivier El Mekki — February 11, 2011 @ 11:47 am

  4. Woops, forget my previous comment, damn too late here, I only *now* see that “secret” param in #signed_request_is_valid? :P

    Comment by Olivier El Mekki — February 11, 2011 @ 11:51 am

    • Its oK. No problem. And thanks a lot for referring this article.

      Comment by Veerasundaravel — February 11, 2011 @ 12:40 pm

  5. Can I get his/her facebook password for my page registration?

    I don’t really understood this script (my englsih is a bit poor, too…)

    How could I change this:
    $signed_request = $_REQUEST[“signed_request”];

    list($encoded_sig, $payload) = explode(‘.’, $signed_request, 2);

    $data = json_decode(base64_decode(strtr($payload, ‘-_’, ‘+/’)), true);

    if (empty($data[“user_id”])) {
    echo(” top.location.href='” . $auth_url . “‘”);
    } else {

    $x = 0;
    foreach($data as $i)
    {
    foreach ($i as $k)
    {
    $x++;
    if ($x == 4)
    {

    print($k[‘name’].””);

    }
    else
    {
    print($k.””);
    }
    }
    //print($i[‘name’]);
    }
    }

    Comment by Tgyi János — February 18, 2011 @ 1:38 am

    • you can get password from the registration data as follows:

      registration[“password”] or in ur case $data[“registration”][“password”]

      Comment by Veerasundaravel — February 18, 2011 @ 2:52 pm

  6. Excellent blog. I was checking continuously this blog and I am impressed! Very helpful information specifically the first part. I care for such info much. I was looking for this particular info for a long time. Thank you and best of luck.

    Comment by Mary Allabaugh — February 19, 2011 @ 2:39 pm

  7. Amazing article. I was checking constantly this blog and I’m impressed! Very helpful info particularly the last part. I care for such information a lot. I was looking for this particular info for a long time. Thank you and good luck.

    Comment by Lakita Plate — February 19, 2011 @ 3:49 pm

  8. Hi! Nice site

    Comment by Brememeterrix — March 3, 2011 @ 2:20 pm

  9. I have added custom fields using teh IFRAME method.

    How do i set it so someone can leave a custom field blank?

    Comment by Brian Moreau — March 6, 2011 @ 2:50 am

    • custom fields don’t have any default validation. So you can allow user to enter blank inputs.

      Comment by Veerasundaravel — March 7, 2011 @ 11:24 am

  10. Facebook Registration Widget and Ruby on Rails…

    I have successfully integrated: the Facebook Registration Plugin/Widget Ruby on Rails Devise The existing websites that talk about how to integrate these widgets include: https://veerasundaravel.wordpress.com/2011/01/27/facebook-registration-plugin-in-rails/

    Trackback by Jay B Hancock.com — March 10, 2011 @ 4:52 pm

  11. Thank you very much for your article and plugin. I have used your plugin in my Rails 3 project, and have gone further to integrate the facebook registration widget with a controller and models that handle both facebook and non-facebook users, and Devise login system.

    I do have some feedback on your plugin as a result of my integration that can help improve it.

    Cheers and thanks again.

    Comment by Jay Hancock — March 11, 2011 @ 12:33 am

    • Thanks a lot Jay.

      Yes I referred your blog and looking forward for improving this plugin in multiple levels like handling non FB users and with more testing etc.

      Comment by Veerasundaravel — March 11, 2011 @ 12:02 pm

  12. Hi ,
    I am getting below error while using this facebook registration functionality .
    undefined method `call’ for # , can any one help , plese .

    Thanks in Advance ,
    Divya

    Comment by Divya — September 12, 2011 @ 6:23 pm

    • can you please post the complete error log, that will be more helpful to find the cause.

      Comment by Veerasundaravel — September 12, 2011 @ 7:39 pm

  13. […] developing an app on rails 3.1 that will be using the facebook registration plugin. I am following this tutorial to do the integration. However, while i am developing my application on localhost:3000, when i […]

    Pingback by Public URL for localhost app, to use with Facebook — October 28, 2011 @ 1:46 am

  14. facebook_registration gem is updated to support latest version of Rails. http://rubydoc.info/gems/facebook_registration/1.0.4/frames

    Comment by Veerasundaravel — December 27, 2011 @ 3:47 pm

  15. I cant get enough of this blog. Sorry i have not commented til now, but im lazy. Just wanted to eventually say thank you.

    Comment by Markita Chrusciel — January 1, 2012 @ 12:12 pm

  16. Webmaster Instructional…

    […]Facebook Registration Plugin in Rails « Veerasundaravel's Ruby on Rails Weblog[…]…

    Trackback by Webmaster Instructional — January 3, 2012 @ 6:37 pm

  17. Good job writing Facebook Registration Plugin in Rails Veerasundaravel's Ruby on Rails Weblog. I would like to learn more on this topic.

    Comment by JOCURI CU BILE pe JocuricuBile.eu — January 6, 2012 @ 12:47 pm

  18. Hey there, thanks for revealing your opinions in Facebook Registration Plugin in Rails Veerasundaravel's Ruby on Rails Weblog. This is really a cool blog.

    Comment by bile — January 9, 2012 @ 6:36 am

  19. I respect your work , thanks for all the interesting posts .

    Comment by Rashad Coltey — January 9, 2012 @ 10:50 pm

  20. I don’t usually comment but I gotta admit thank you for the post on this perfect one :D.

    Comment by Wilhemina Cicoria — January 10, 2012 @ 7:45 pm

  21. Regards for helping out, great info .

    Comment by Laurence Scheel — January 19, 2012 @ 9:48 pm

  22. So when i get the signed request back from Facebook, should I be verifying the oauth_token by hitting “https://graph.facebook.com/oauth/access_token”? Where is the call to signed_request_is_valid?(secret, signature, params) and what exactly are those parameters?

    Thanks,
    Blake

    Comment by Blake Miller — March 13, 2012 @ 9:01 am

    • Found an answer to the second part of my question from: http://oleriesenberg.com

      Be sure you call signed_request_is_valid? with the signed_params *before* you decode them into a hash (the Yaji line). I also had to change the “call” method to some other name like “parse_params”. Ruby was having troubles with the name of the function.

      # Verify signature
      unless signed_request_is_valid?(Buddy.current_config[‘secret’], signature, signed_params)
      return Rack::Response.new([“Invalid Facebook signature”], 400).finish
      end

      # Parse JSON
      signed_params = Yajl::Parser.new.parse(base64_url_decode(signed_params))

      Comment by Blake Miller — March 14, 2012 @ 7:12 am

      • Hi Blake,

        Thank you very much for referring my article and your suggestion. Meantime please refer the facebook_registration gem https://rubygems.org/gems/facebook_registration/versions/1.0.4, where you can find the easily accessible ruby gem for this facebook registration form implementation and also the parse method.

        Thanks,
        Veeraa.

        Comment by Veerasundaravel — March 14, 2012 @ 10:32 am

  23. Hi there! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly? My web site looks weird when viewing from my apple iphone. I’m trying to find a template or plugin that might be able to fix this problem. If you have any recommendations, please share. With thanks!

    Comment by 1800 the general insurance — July 5, 2012 @ 9:38 am

  24. Hi,

    How can we do the localization in registration plugin using Iframe..

    For Eg:

    If i want to display the content in Portuguese (Brazil) language,how will i do it? I have specified the “locale” parameter in the i frame URL like:

    <iframe src="https://www.facebook.com/plugins/registration?
    client_id=&
    redirect_uri=&
    fields=name,birthday,gender,location,email&locale=pt_BR
    scrolling=”auto”
    frameborder=”no”
    style=”border:none”
    allowTransparency=”true”
    width=”100%”
    height=”330″>

    It doesn’t works…

    But when i directly cpoied the URL to the Browser.It works fine and got translated!!!!

    https://www.facebook.com/plugins/registration?client_id=APPID&redirect_uri=REDIRECT_URI&fields=name,birthday,gender,location,email&locale=pt_BR

    Please let me know what need to be done!!!!

    Comment by Suresh — July 26, 2012 @ 6:36 pm

    • Try this below code:

      Most probably you may need to refresh the page multiple time to clear cache or close and reopen the browser.

      Comment by Veerasundaravel — July 26, 2012 @ 6:58 pm

  25. I am trying to include the feature in an already existing registration form. Is it possible that i will keep my form & just that facebbok prefill link. When user clicks it and put its credentials my own regisration pafe gets prefilled

    Comment by Vimarsh — August 2, 2012 @ 3:04 pm

  26. I almost never leave a response, but after looking at
    a lot of comments on Facebook Registration Plugin in Rails Veerasundaravel’s Ruby on Rails Weblog. I do have 2 questions for you if you do not mind. Could it be just me or does it look like like a few of the responses come across as if they are written by brain dead individuals? :-P And, if you are writing at additional online sites, I’d like to keep up with anything new you have to post.

    Would you post a list of the complete urls of all your social community sites like your linkedin
    profile, Facebook page or twitter feed?

    Comment by Jonathon — November 19, 2012 @ 6:34 am

  27. I have read some good stuff here. Certainly price bookmarking for revisiting.
    I surprise how much attempt you place to create this sort of magnificent informative website.

    Comment by Sherita — December 3, 2012 @ 9:30 pm

  28. Hello there, You have done a great job. I’ll definitely digg it and personally recommend to my friends. I am sure they’ll
    be benefited from this web site.

    Comment by [主页] — December 15, 2012 @ 6:06 am

  29. Hello I am so thrilled I found your blog page, I really
    found you by mistake, while I was looking on Digg for something else,
    Regardless I am here now and would just like to say kudos for a remarkable post and a
    all round enjoyable blog (I also love the theme/design), I don’t have time to read through it all at the minute but I have bookmarked it and also added in your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent job.

    Comment by online casino — January 1, 2013 @ 1:39 pm

  30. What i don’t understood is in reality how you are no longer really a lot more neatly-favored than you may be now. You’re so intelligent.
    You recognize therefore significantly relating to this topic, made me personally consider it from numerous varied
    angles. Its like women and men are not interested until it is one thing to accomplish with Girl gaga!
    Your personal stuffs outstanding. All the time maintain it up!

    Comment by toddler clothes cheap girls — January 5, 2013 @ 8:22 pm

  31. What exactly seriously influenced you to write
    “Facebook Registration Plugin in Rails | Veerasundaravel’s Ruby on Rails Weblog”? I actuallyreally enjoyed reading the blog post! Thanks a lot -Wilda

    Comment by http://tinyurl.com/chialegg55109 — January 27, 2013 @ 7:30 am

  32. Does your site have a contact page? I’m having trouble locating it but, I’d like to send you an email.
    I’ve got some creative ideas for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it grow over time.

    Comment by www.uwinbank.com — January 29, 2013 @ 5:08 pm

  33. I’m amazed, I must say. Rarely do I encounter a blog that’s equally educative and amusing, and let
    me tell you, you have hit the nail on the head.
    The problem is something which too few folks are speaking
    intelligently about. Now i’m very happy that I stumbled across this during my hunt for something relating to this.

    Comment by cold calling techniques that really work by stephan schiffman — April 20, 2013 @ 5:07 am

  34. It will be right that Most common system requirements are Ruby on Rails Framework software, Database such as MySQL, Oracle, DB2, SQL server GUI client for Windows.

    Comment by Jay Dee — April 22, 2013 @ 8:20 pm

  35. Sweet blog! I found it while searching on
    Yahoo News. Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there! Many thanks

    Comment by Replica Watches — May 7, 2013 @ 11:47 am

  36. Great blog right here! Additionally your website loads
    up very fast! What web host are you using? Can I get your associate link on your
    host? I desire my website loaded up as fast as yours lol

    Comment by Replica Watches — May 7, 2013 @ 12:26 pm

  37. Incredible points. Sound arguments. Keep up the good work.

    Comment by rosenrod dokumentation — May 8, 2013 @ 2:09 am

  38. Attractive section of content. I simply stumbled upon your weblog and in accession capital to say that
    I get in fact enjoyed account your blog posts.
    Any way I’ll be subscribing for your augment and even I fulfillment you access consistently quickly.

    Comment by facebook — May 15, 2013 @ 12:39 am

  39. Hey there! This is kind of off topic but I need some help from an established blog.
    Is it very difficult to set up your own blog? I’m not very techincal but I can figure things out pretty fast. I’m
    thinking about setting up my own but I’m not sure where to begin. Do you have any ideas or suggestions? Thanks

    Comment by Leora — May 28, 2013 @ 1:11 pm

  40. Thanks for finally writing about >Facebook Registration Plugin
    in Rails | Veerasundaravel’s Ruby on Rails Weblog <Loved it!

    Comment by http://www.thiscovers.com/ — June 23, 2013 @ 8:09 pm

  41. We are a group of volunteers and starting a new
    scheme in our community. Your website offered us with valuable info to work on.
    You’ve done a formidable job and our whole community will be thankful to you.

    Comment by http://onlinecasinos911.co.uk — July 18, 2013 @ 6:46 am

  42. I believe this is among the so much important info for me.
    And i’m satisfied studying your article. But wanna observation on few general issues, The web site taste is ideal, the articles is really nice : D. Good activity, cheers

    Comment by raspberry ketones reviews — July 21, 2013 @ 4:23 pm

  43. What’s up i am kavin, its my first occasion to commenting anywhere, when i read this article i thought i could also make comment due to this brilliant article.

    Comment by Edmund — July 23, 2013 @ 9:31 pm

  44. Why viewers still make use of to read news
    papers when in this technological world all is existing on web?

    Comment by us fast cash payday loan no credit — July 25, 2013 @ 3:49 pm

  45. Wow, awesome weblog structure! How long have you
    been blogging for? you make running a blog glance easy. The full glance of your web site is great, as smartly
    as the content material!

    Comment by Air Conditioning Repair Louisville — August 2, 2013 @ 9:50 am

  46. This is my first time pay a visit at here and i am in fact
    impressed to read all at alone place.

    Comment by melatonin supplements — August 8, 2013 @ 7:01 am

  47. Registered Accounts1

    Comment by APruchAcourb — August 12, 2013 @ 12:17 pm

  48. I have read so many articles on the topic of the blogger lovers except this article is really
    a pleasant paragraph, keep it up.

    Comment by philippines dating — August 21, 2013 @ 2:33 am

  49. First of all I want to say awesome blog! I had a quick question which I’d like to ask
    if you don’t mind. I was curious to know
    how you center yourself and clear your thoughts before writing.
    I’ve had difficulty clearing my thoughts in getting
    my ideas out there. I truly do enjoy writing however it just seems like the first 10 to 15 minutes are usually wasted simply just trying to figure
    out how to begin. Any ideas or tips? Thank you!

    Comment by best handpicked porn — April 25, 2014 @ 2:22 am

  50. When someone writes an article he/she keeps the idea of a
    user in his/her brain that how a user can be aware of it.
    Thus that’s why this piece of writing is outstdanding.
    Thanks!

    Comment by sbobet — August 4, 2014 @ 4:50 pm

  51. […] Facebook Registration Plugin in Rails | Veerasundaravel’s …  […]

    Pingback by Facebook Login rails 4 — August 5, 2014 @ 3:55 pm

  52. Excelente blogs que tienes aquí difícil encontrar alta calidad escritura como la suya actualidad .
    Honestamente personas como usted ! Cuídate !!

    Comment by dieta De la Ketolisis — September 28, 2014 @ 11:43 am

  53. Hi i am kavin, its my first time to commenting
    anyplace, when i read this post i thought i could also make comment due to this sensible paragraph.

    Comment by search engine marketing specialist — October 3, 2014 @ 12:29 am

  54. the particular person you are exchanging it with is actually heading
    to care about the rarity of the coin that substantially.
    Each tube contains 20 American Silver Eagle
    coins. They’ve been minted annually since 1988 by the Royal Canadian Mint.

    Comment by Rachel — January 8, 2015 @ 6:02 am

  55. Equation Solver For Table

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by Equation Solver For Table — January 18, 2017 @ 8:26 pm

  56. Thanks for finally writing about >Facebook Registration Plugin in Rails | Veerasundaravel’s Ruby on Rails Weblog <Loved it!

    Comment by SBOBET — April 8, 2018 @ 12:13 pm

  57. view site…

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by view site… — January 21, 2022 @ 3:01 pm

  58. enquiry

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by enquiry — January 21, 2022 @ 4:55 pm

  59. Is electriq tv a good brand

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by Is electriq tv a good brand — January 21, 2022 @ 6:24 pm

  60. Full Write-up

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by Full Write-up — January 21, 2022 @ 8:42 pm

  61. buy tobacco Pipes

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by buy tobacco Pipes — January 22, 2022 @ 4:05 am

  62. makita angle grinder attachments

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by makita angle grinder attachments — January 22, 2022 @ 12:40 pm

  63. luxury crossbody bags

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by luxury crossbody bags — January 22, 2022 @ 5:43 pm

  64. root zte warp without computer

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by root zte warp without computer — January 22, 2022 @ 6:07 pm

  65. disney princess style collection travel tote

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by disney princess style collection travel tote — January 22, 2022 @ 6:41 pm

  66. amazon tobacco pipes

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by amazon tobacco pipes — January 22, 2022 @ 10:58 pm

  67. travel tote

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by travel tote — January 24, 2022 @ 1:18 am

  68. used benchtop milling machine for sale near me

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by used benchtop milling machine for sale near me — January 24, 2022 @ 8:54 am

  69. women’s clothing store

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by women's clothing store — January 26, 2022 @ 4:48 am

  70. mcbrine luggage canada

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by mcbrine luggage canada — January 26, 2022 @ 12:47 pm

  71. louis vuitton bag braided handle

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by louis vuitton bag braided handle — January 27, 2022 @ 7:31 am

  72. internet

    Facebook Registration Plugin in Rails | Veerasundaravel's Ruby on Rails Weblog

    Trackback by internet — January 30, 2022 @ 4:40 am

  73. […] developing an app on rails 3.1 that will be using the facebook registration plugin. I am following this tutorial to do the integration. However, while i am developing my application on localhost:3000, when i […]

    Pingback by Public URL for localhost app, to use with Facebook — September 2, 2022 @ 12:19 am


RSS feed for comments on this post. TrackBack URI

Leave a reply to Suresh Cancel reply