ruby on rails - OmniContacts gem always fail on with my yahoo contacts importes -


I am using the Omni contacts gem to import contacts from Yahoo and Gmail to my app. Now Yahoo importer is stopping working.

I have the following functions on my controller:

  def contacts_callback @contacts = request.env ['omnicontacts.contacts'] @importer = params [: importer] if Session [: draw_token] @draw_token = session [: draw_token] End & import import_failed if session [: draw_token] draw = Draw.find_by_token (session [: draw_token]) If Draw! = Blue session [: draw_token] = zero redirect_to dashboard_draw_arl (draw) and session [: draw_token] = zero redirect_to root_path, warnings: _ (end date) and redirect- (dashboard_show_invitation_email_friendship_url, warning: _ ('Draw does not exist.') 'You have canceled the request.') End End   

Route: Get / Contact /: Importer / Callback '= & gt; 'Dashboard / Invitation_Email #Contactbackback' '/ Contact / Failure' = & gt; Receive '' Dashboard / Invitation_email # imp ort_failed '

But when I try to import from Yahoo, I am always in the import_failed action and why I can not understand.

Also know what the problem is.

Thanks in advance

This is an old The question is, but I will answer it in any way so that you can close it

First of all, you get the latest version of Omni contacts in old versions It must be used, it was not using https, which is necessary

Secondly, you should see in your console log, you may see an error like this:

Custom port is not allowed or the host is not registered with this consumer key.

This means that you are using this kind of callback URL (normal for ROR)

  http: // localhost: 3000 / Contact / Callback   

Yahoo does not allow the port to specify it is from a Yahoo! dev.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -