Is it just me, or is Facebook no longer providing proxied_email anymore without extending permissions? This is causing problems for fast registration.

Perhaps fbconnect should be updated to have a setting to request the email address, so that we can get either the user's real address or proxied address depending on their choice? And if the user doesn't use this setting, we just autogenerate an email somehow?

Comments

JStarcher’s picture

I am having the exact same issue. Looks like it's due to the Facebook API updates.

CaptShmo’s picture

I am having this problem as well

JStarcher’s picture

After extensive research and trial & error, there is no solid answer on this issue. We are writing a FBConnect Graph module which includes pretty much the same functionality as this module but uses the new Facebook Graph API. After 6.5 hours of development it works but with a few minor quirks. Working to get these resolved and then we will contrib. This module will also act as an API interface for Faceboob Graph API.

gorgo’s picture

Hi JStarcher ,

Did you manage to get this module to work?
Any chance you can share your module with the community?

Oscar Illada’s picture

great !!!! when you have, if you want share it ;), Thanx Oscar

internetdevels’s picture

subs

mohanrv’s picture

How can we autogenerate an email in fbconnect module?

Please help me anybody.

mohanrv’s picture

what we can do in fbconnect module to get proxied_email from facebook? and
How can we pass permission variables to facebook in fbconnect module?
In fbconnect module what I can make changes?

JStarcher’s picture

That did not work for me either. The module is done, I'll see what I can do to get it released next week.

mcarbone’s picture

JStarcher, sounds great. Do you think it would be easy to migrate from this module to the new Graph API one (if one copied over the fbuid/uid data with a mysql query?)

mohanrv’s picture

JStarcher , any clue to work with the current module like permissions or parameters or javascript changes or php script changes , etc......

because i need to rectify this problem urgently.

mcarbone’s picture

It's throwing a bunch of errors before any FB cookies are loaded, and I had to add a base_path() call to where fbconnect_graph.js is added to make it work on my system. (You should use drupal_add_js with the footer scope.) But once I had that working, the basic login button worked and seemed to ask for the right permissions, although I was getting errors when trying to log out.

Also, it lacks some of the features fbconnect has in terms allowing a pass through the registration page, and redirecting back to the page the user logged in from. I also don't know about the auto-login being a default feature that can't be changed.

In general, I think it needs a lot of work, but I think the basic concept is something that would be useful for the community. You probably should start a new project for it if you want the community to start helping out with it, although it may need some more work before getting to that point.

mohanrv’s picture

After a long search i have found one simple solution to retrieve user email with their permission from facebook, please see below

you need to put,

1. perms="email" parameter into fb:login tag (fbconnect.pages.inc) like below,

2. add this { permsToRequestOnConnect: 'email' } parameter as third into FB.Facebook.init() (fbconnect.module) in function fbconnect_render_js() call. line no 649.

I have done with these two changes and now fbconnect works well.

dawansv’s picture

#14 has the right info, but the latest dev code is different so changes must be made as below.

In fbconnect.js: you need to add the { permsToRequestOnConnect: 'email' } parameter to appInitSettins

Diff is here:

@@ -16,7 +16,8 @@ Drupal.behaviors.fbconnect = function(context) {
                                },
                                ifUserNotConnected : function(fbuid) {
                                        $.event.trigger('fbconnect:ifUserNotConnected', [fbuid, settings.fbuid]);
-                               }
+                               },
+                               permsToRequestOnConnect: 'email'
                        };

                        FB.Facebook.init(

In fbconnect.module, you need to add 'perms' => 'email' to the login button attribute list:

Diff is here:

@@ -334,7 +334,8 @@ function fbconnect_render_button($attr =
     'size'       => $size,
     'onlogin'    => 'facebook_onlogin_ready();',
     'background' => 'dark',
-    'v'          => 2
+    'v'          => 2,
+    'perms'      => 'email'
   );
Carl Johan’s picture

Works great, thanks!

pradeepg_jain’s picture

dawansv - i applied the patch ..but its not working for me. it still asks for email when i click on
Click here to create a new www.ratingscorner.com account with Facebook

Oscar Illada’s picture

Same problem as pradeepg_jain

Federico67’s picture

Same problem

vectoroc’s picture

Status: Active » Needs review
vectoroc’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.